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

Unified Diff: frog/tree.g.dart

Issue 9143001: Fixes 2 tests and a crash (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 11 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: frog/tree.g.dart
diff --git a/frog/tree.g.dart b/frog/tree.g.dart
index 28aeae455a284adeebf6d8ac8f9ce25968c6fa22..7ebeefeec3b678d429eb84bf21dd89c65cd70885 100644
--- a/frog/tree.g.dart
+++ b/frog/tree.g.dart
@@ -275,20 +275,21 @@ class NewExpression extends Expression {
class ListExpression extends Expression {
bool isConst;
- TypeReference type;
+ TypeReference itemType;
List<Expression> values;
- ListExpression(this.isConst, this.type, this.values, SourceSpan span): super(span) {}
+ ListExpression(this.isConst, this.itemType, this.values, SourceSpan span): super(span) {}
visit(TreeVisitor visitor) => visitor.visitListExpression(this);
}
class MapExpression extends Expression {
bool isConst;
- TypeReference type;
+ TypeReference keyType;
+ TypeReference valueType;
List<Expression> items;
- MapExpression(this.isConst, this.type, this.items, SourceSpan span): super(span) {}
+ MapExpression(this.isConst, this.keyType, this.valueType, this.items, SourceSpan span): super(span) {}
visit(TreeVisitor visitor) => visitor.visitMapExpression(this);
}
@@ -779,14 +780,15 @@ class TreePrinter implements TreeVisitor {
void visitListExpression(ListExpression node) {
output.heading('ListExpression', node.span);
output.writeValue('isConst', node.isConst);
- output.writeNode('type', node.type);
+ output.writeNode('itemType', node.itemType);
output.writeNodeList('values', node.values);
}
void visitMapExpression(MapExpression node) {
output.heading('MapExpression', node.span);
output.writeValue('isConst', node.isConst);
- output.writeNode('type', node.type);
+ output.writeNode('keyType', node.keyType);
+ output.writeNode('valueType', node.valueType);
output.writeNodeList('items', node.items);
}

Powered by Google App Engine
This is Rietveld 408576698