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

Unified Diff: lib/compiler/implementation/js_backend/native_emitter.dart

Issue 10905305: Patch refactoring. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Replaced includeInjectedMembers by implementation Created 8 years, 3 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/js_backend/native_emitter.dart
diff --git a/lib/compiler/implementation/js_backend/native_emitter.dart b/lib/compiler/implementation/js_backend/native_emitter.dart
index 647fab4f38af7ac01846251a0add4bc0a1e74938..2168babf3483ad6028b217a7797b6640c4e587bb 100644
--- a/lib/compiler/implementation/js_backend/native_emitter.dart
+++ b/lib/compiler/implementation/js_backend/native_emitter.dart
@@ -119,11 +119,11 @@ function(cls, fields, methods) {
nativeBuffer.add("$className.$name = $value;\n");
}
- for (Element member in classElement.localMembers) {
+ classElement.implementation.forEachMember((_, Element member) {
if (member.isInstanceMember()) {
emitter.addInstanceMember(member, defineInstanceMember);
}
- }
+ });
}
bool isNativeLiteral(String quotedName) {

Powered by Google App Engine
This is Rietveld 408576698