Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(254)

Unified Diff: lib/compiler/implementation/world.dart

Issue 10832203: Refactor Library/CompilationUnit and how we define local Scope. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Last test fixes, passes co19. Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: lib/compiler/implementation/world.dart
diff --git a/lib/compiler/implementation/world.dart b/lib/compiler/implementation/world.dart
index 7254d7a7f68e87537c73a78fe71b319e493d80c8..867812263059829ed3d92a5478393b8bd542f9f1 100644
--- a/lib/compiler/implementation/world.dart
+++ b/lib/compiler/implementation/world.dart
@@ -19,10 +19,7 @@ class World {
}
libraries.forEach((LibraryElement library) {
- for (Link<Element> link = library.topLevelElements;
- !link.isEmpty();
- link = link.tail) {
- Element element = link.head;
+ for (Element element in library.localMembers) {
if (!element.isClass()) continue;
ClassElement cls = element;
compiler.resolveClass(cls);

Powered by Google App Engine
This is Rietveld 408576698