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

Unified Diff: lib/compiler/implementation/dart_backend/backend.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/dart_backend/backend.dart
===================================================================
--- lib/compiler/implementation/dart_backend/backend.dart (revision 13683)
+++ lib/compiler/implementation/dart_backend/backend.dart (working copy)
@@ -356,9 +356,9 @@
constructor.cachedNode = new FunctionExpression(
new Send(receiver: classElement.parseNode(compiler).name,
selector: synthesizedIdentifier),
- new NodeList(beginToken: new StringToken(OPEN_PAREN_INFO, '(', -1),
- endToken: new StringToken(CLOSE_PAREN_INFO, ')', -1),
- nodes: const Link<Node>()),
+ new NodeList(new StringToken(OPEN_PAREN_INFO, '(', -1),
+ const Link<Node>(),
+ new StringToken(CLOSE_PAREN_INFO, ')', -1)),
new EmptyStatement(new StringToken(SEMICOLON_INFO, ';', -1)),
null, Modifiers.EMPTY, null, null);
@@ -469,10 +469,10 @@
}
}
- unparseSendReceiver(Send node, [bool spacesNeeded=false]) {
+ unparseSendReceiver(Send node, {bool spacesNeeded: false}) {
// TODO(smok): Remove ugly hack for library prefices.
if (node.receiver !== null && renames[node.receiver] == '') return;
- super.unparseSendReceiver(node, spacesNeeded);
+ super.unparseSendReceiver(node, spacesNeeded: spacesNeeded);
}
}
« no previous file with comments | « lib/compiler/implementation/compiler.dart ('k') | lib/compiler/implementation/dart_backend/placeholder_collector.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698