| 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 &&
|
|
|