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

Unified Diff: lib/compiler/implementation/js/printer.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/printer.dart
===================================================================
--- lib/compiler/implementation/js/printer.dart (revision 13683)
+++ lib/compiler/implementation/js/printer.dart (working copy)
@@ -73,7 +73,7 @@
}
visitCommaSeparated(List<Node> nodes, int hasRequiredType,
- [bool newInForInit, bool newAtStatementBegin]) {
+ {bool newInForInit, bool newAtStatementBegin}) {
for (int i = 0; i < nodes.length; i++) {
if (i != 0) {
atStatementBegin = false;
@@ -81,7 +81,8 @@
spaceOut();
}
visitNestedExpression(nodes[i], hasRequiredType,
- newInForInit, newAtStatementBegin);
+ newInForInit: newInForInit,
+ newAtStatementBegin: newAtStatementBegin);
}
}
@@ -93,7 +94,7 @@
visitAll(program.body);
}
- bool blockBody(Node body, [bool needsSeparation, bool needsNewline]) {
+ bool blockBody(Node body, {bool needsSeparation, bool needsNewline}) {
if (body is Block) {
spaceOut();
blockOut(body, false, needsNewline);
@@ -379,7 +380,7 @@
}
visitNestedExpression(Expression node, int requiredPrecedence,
- [bool newInForInit, bool newAtStatementBegin]) {
+ {bool newInForInit, bool newAtStatementBegin}) {
bool needsParentheses =
// a - (b + c).
(requiredPrecedence != EXPRESSION &&
« no previous file with comments | « lib/compiler/implementation/elements/elements.dart ('k') | lib/compiler/implementation/js_backend/backend.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698