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

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: 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/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 787c893e9dd4ed3d4a18ab322c8c76fe1cce9494..065a43d3fc9ffd42dc5496f44f60514d4516233c 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) {
Lasse Reichstein Nielsen 2012/10/09 11:04:35 Drop the first parameter to the function and just
if (member.isInstanceMember()) {
emitter.addInstanceMember(member, defineInstanceMember);
}
- }
+ });
}
bool isNativeLiteral(String quotedName) {

Powered by Google App Engine
This is Rietveld 408576698