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

Unified Diff: lib/compiler/implementation/dart_backend/backend.dart

Issue 10905305: Patch refactoring. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebased. Created 8 years, 2 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/dart_backend/backend.dart
diff --git a/lib/compiler/implementation/dart_backend/backend.dart b/lib/compiler/implementation/dart_backend/backend.dart
index de00a48d13d1f34632cf1a65d1991ead3b6f332b..f5cf60d4eb00d6b3ff50344e455b6eef3f7766f0 100644
--- a/lib/compiler/implementation/dart_backend/backend.dart
+++ b/lib/compiler/implementation/dart_backend/backend.dart
@@ -217,7 +217,7 @@ class DartBackend extends Backend {
final fixedMemberNames = new Set<String>();
for (final library in compiler.libraries.getValues()) {
if (!library.isPlatformLibrary) continue;
- for (final element in library.localMembers) {
+ library.implementation.forEachLocalMember((Element element) {
if (element is ClassElement) {
ClassElement classElement = element;
// Make sure we parsed the class to initialize its local members.
@@ -239,7 +239,7 @@ class DartBackend extends Backend {
// from dynamic invocation (alas!). So we'd better err on preserving
// those names.
fixedMemberNames.add(element.name.slowToString());
- }
+ });
}
// TODO(antonm): TypeError.srcType and TypeError.dstType are defined in
// runtime/lib/error.dart. Overall, all DartVM specific libs should be

Powered by Google App Engine
This is Rietveld 408576698