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

Unified Diff: lib/compiler/implementation/js_backend/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/emitter.dart
===================================================================
--- lib/compiler/implementation/js_backend/emitter.dart (revision 13683)
+++ lib/compiler/implementation/js_backend/emitter.dart (working copy)
@@ -68,7 +68,7 @@
}
void writeConstantToBuffer(Constant value, CodeBuffer buffer,
- [emitCanonicalVersion = true]) {
+ {emitCanonicalVersion: true}) {
if (emitCanonicalVersion) {
constantEmitter.emitCanonicalVersionOfConstant(value, buffer);
} else {
@@ -739,13 +739,14 @@
buffer.add(memberBuffer);
}
- classElement.implementation.forEachMember(includeBackendMembers: true,
- f: (ClassElement enclosing, Element member) {
- assert(invariant(classElement, member.isDeclaration));
- if (member.isInstanceMember()) {
- addInstanceMember(member, defineInstanceMember);
- }
- });
+ classElement.implementation.forEachMember(
+ (ClassElement enclosing, Element member) {
+ assert(invariant(classElement, member.isDeclaration));
+ if (member.isInstanceMember()) {
+ addInstanceMember(member, defineInstanceMember);
+ }
+ },
+ includeBackendMembers: true);
generateIsTestsOn(classElement, (ClassElement other) {
String code;
« no previous file with comments | « lib/compiler/implementation/js_backend/constant_emitter.dart ('k') | lib/compiler/implementation/lib/coreimpl_patch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698