| Index: lib/compiler/implementation/tree/unparser.dart
|
| diff --git a/lib/compiler/implementation/tree/unparser.dart b/lib/compiler/implementation/tree/unparser.dart
|
| index a9a466d09ccc818c7a85b67183dd885961d1150b..f4009b20fdc053ab6a6ac950dc74f0022402c051 100644
|
| --- a/lib/compiler/implementation/tree/unparser.dart
|
| +++ b/lib/compiler/implementation/tree/unparser.dart
|
| @@ -10,6 +10,8 @@ class Unparser implements Visitor {
|
| StringBuffer sb;
|
|
|
| Unparser() {
|
| + // TODO(smok): Move this to initializer once dart2js stops complaining
|
| + // about closures in initializers.
|
| rename = (Node node) => null;
|
| }
|
| Unparser.withRenamer(this.rename);
|
| @@ -271,7 +273,7 @@ class Unparser implements Visitor {
|
| unparseSendReceiver(node);
|
| if (node.isIndex) {
|
| sb.add('[');
|
| - sb.add(node.arguments.head);
|
| + visit(node.arguments.head);
|
| sb.add(']');
|
| if (!node.isPrefix) visit(node.assignmentOperator);
|
| unparseNodeListFrom(node.argumentsNode, node.argumentsNode.nodes.tail);
|
|
|