Index: pkg/compiler/lib/src/tree/unparser.dart |
diff --git a/pkg/compiler/lib/src/tree/unparser.dart b/pkg/compiler/lib/src/tree/unparser.dart |
index 65101ec1dc0f2ca0783941165974ce1d1daebbc5..e75d7bc78f348ee0d8e2153d369345f43aa87d18 100644 |
--- a/pkg/compiler/lib/src/tree/unparser.dart |
+++ b/pkg/compiler/lib/src/tree/unparser.dart |
@@ -386,10 +386,7 @@ class Unparser extends Indentation implements Visitor { |
if (node.nodes != null) { |
unparseNodeListFrom(node, node.nodes, spaces: spaces); |
} |
- // if "[]" then beginToken == endToken ... only write beginToken |
- if (node.endToken != null && node.endToken != node.beginToken) { |
- write(node.endToken.lexeme); |
- } |
+ if (node.endToken != null) write(node.endToken.lexeme); |
} |
visitNodeList(NodeList node) { |