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

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

Issue 10912109: Fix checked mode on browser. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: 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
« no previous file with comments | « no previous file | pkg/pkg.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/js_backend/native_emitter.dart
===================================================================
--- lib/compiler/implementation/js_backend/native_emitter.dart (revision 11925)
+++ lib/compiler/implementation/js_backend/native_emitter.dart (working copy)
@@ -150,7 +150,8 @@
}
CodeBuffer fieldBuffer = new CodeBuffer();
- emitter.emitClassFields(classElement, fieldBuffer);
+ List<String> checkedSetters =
+ emitter.emitClassFields(classElement, fieldBuffer);
CodeBuffer methodBuffer = new CodeBuffer();
emitter.emitInstanceMembers(classElement, methodBuffer, false);
@@ -161,6 +162,10 @@
nativeBuffer.add("$defineNativeClassName('$nativeName', [");
nativeBuffer.add(fieldBuffer);
nativeBuffer.add('], {');
+ if (!checkedSetters.isEmpty()) {
+ nativeBuffer.add('${Strings.join(checkedSetters, ",\n")}');
+ nativeBuffer.add(',\n');
+ }
nativeBuffer.add(methodBuffer);
nativeBuffer.add('\n});\n\n');
« no previous file with comments | « no previous file | pkg/pkg.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698