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

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

Issue 11090016: Change core lib, dart2js, and more for new optional parameters syntax (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: 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/constant_emitter.dart
===================================================================
--- lib/compiler/implementation/js_backend/constant_emitter.dart (revision 13683)
+++ lib/compiler/implementation/js_backend/constant_emitter.dart (working copy)
@@ -207,9 +207,7 @@
// are in the same order as the members of the class element.
int emittedArgumentCount = 0;
classElement.implementation.forEachInstanceField(
- includeBackendMembers: true,
- includeSuperMembers: true,
- f: (ClassElement enclosing, Element field) {
+ (ClassElement enclosing, Element field) {
if (emittedArgumentCount != 0) buffer.add(", ");
if (field.name == MapConstant.LENGTH_NAME) {
buffer.add(constant.keys.entries.length);
@@ -224,7 +222,9 @@
badFieldCountError();
}
emittedArgumentCount++;
- });
+ },
+ includeBackendMembers: true,
+ includeSuperMembers: true);
if ((constant.protoValue === null && emittedArgumentCount != 3) ||
(constant.protoValue !== null && emittedArgumentCount != 4)) {
badFieldCountError();
« no previous file with comments | « lib/compiler/implementation/js_backend/backend.dart ('k') | lib/compiler/implementation/js_backend/emitter.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698