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

Unified Diff: lib/compiler/implementation/tree/unparser.dart

Issue 10824280: Fix unparse of sendset and add Unparser constructor TODO (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 4 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698