| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 // Generated by scripts/tree_gen.py. | 4 // Generated by scripts/tree_gen.py. |
| 5 | 5 |
| 6 class DirectiveDefinition extends Definition { | 6 class DirectiveDefinition extends Definition { |
| 7 Identifier name; | 7 Identifier name; |
| 8 List<ArgumentNode> arguments; | 8 List<ArgumentNode> arguments; |
| 9 | 9 |
| 10 DirectiveDefinition(this.name, this.arguments, SourceSpan span): super(span) {
} | 10 DirectiveDefinition(this.name, this.arguments, SourceSpan span): super(span) {
} |
| (...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 268 Identifier name; | 268 Identifier name; |
| 269 List<ArgumentNode> arguments; | 269 List<ArgumentNode> arguments; |
| 270 | 270 |
| 271 NewExpression(this.isConst, this.type, this.name, this.arguments, SourceSpan s
pan): super(span) {} | 271 NewExpression(this.isConst, this.type, this.name, this.arguments, SourceSpan s
pan): super(span) {} |
| 272 | 272 |
| 273 visit(TreeVisitor visitor) => visitor.visitNewExpression(this); | 273 visit(TreeVisitor visitor) => visitor.visitNewExpression(this); |
| 274 } | 274 } |
| 275 | 275 |
| 276 class ListExpression extends Expression { | 276 class ListExpression extends Expression { |
| 277 bool isConst; | 277 bool isConst; |
| 278 TypeReference type; | 278 TypeReference itemType; |
| 279 List<Expression> values; | 279 List<Expression> values; |
| 280 | 280 |
| 281 ListExpression(this.isConst, this.type, this.values, SourceSpan span): super(s
pan) {} | 281 ListExpression(this.isConst, this.itemType, this.values, SourceSpan span): sup
er(span) {} |
| 282 | 282 |
| 283 visit(TreeVisitor visitor) => visitor.visitListExpression(this); | 283 visit(TreeVisitor visitor) => visitor.visitListExpression(this); |
| 284 } | 284 } |
| 285 | 285 |
| 286 class MapExpression extends Expression { | 286 class MapExpression extends Expression { |
| 287 bool isConst; | 287 bool isConst; |
| 288 TypeReference type; | 288 TypeReference keyType; |
| 289 TypeReference valueType; |
| 289 List<Expression> items; | 290 List<Expression> items; |
| 290 | 291 |
| 291 MapExpression(this.isConst, this.type, this.items, SourceSpan span): super(spa
n) {} | 292 MapExpression(this.isConst, this.keyType, this.valueType, this.items, SourceSp
an span): super(span) {} |
| 292 | 293 |
| 293 visit(TreeVisitor visitor) => visitor.visitMapExpression(this); | 294 visit(TreeVisitor visitor) => visitor.visitMapExpression(this); |
| 294 } | 295 } |
| 295 | 296 |
| 296 class ConditionalExpression extends Expression { | 297 class ConditionalExpression extends Expression { |
| 297 Expression test; | 298 Expression test; |
| 298 Expression trueBranch; | 299 Expression trueBranch; |
| 299 Expression falseBranch; | 300 Expression falseBranch; |
| 300 | 301 |
| 301 ConditionalExpression(this.test, this.trueBranch, this.falseBranch, SourceSpan
span): super(span) {} | 302 ConditionalExpression(this.test, this.trueBranch, this.falseBranch, SourceSpan
span): super(span) {} |
| (...skipping 470 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 772 output.heading('NewExpression', node.span); | 773 output.heading('NewExpression', node.span); |
| 773 output.writeValue('isConst', node.isConst); | 774 output.writeValue('isConst', node.isConst); |
| 774 output.writeNode('type', node.type); | 775 output.writeNode('type', node.type); |
| 775 output.writeNode('name', node.name); | 776 output.writeNode('name', node.name); |
| 776 output.writeNodeList('arguments', node.arguments); | 777 output.writeNodeList('arguments', node.arguments); |
| 777 } | 778 } |
| 778 | 779 |
| 779 void visitListExpression(ListExpression node) { | 780 void visitListExpression(ListExpression node) { |
| 780 output.heading('ListExpression', node.span); | 781 output.heading('ListExpression', node.span); |
| 781 output.writeValue('isConst', node.isConst); | 782 output.writeValue('isConst', node.isConst); |
| 782 output.writeNode('type', node.type); | 783 output.writeNode('itemType', node.itemType); |
| 783 output.writeNodeList('values', node.values); | 784 output.writeNodeList('values', node.values); |
| 784 } | 785 } |
| 785 | 786 |
| 786 void visitMapExpression(MapExpression node) { | 787 void visitMapExpression(MapExpression node) { |
| 787 output.heading('MapExpression', node.span); | 788 output.heading('MapExpression', node.span); |
| 788 output.writeValue('isConst', node.isConst); | 789 output.writeValue('isConst', node.isConst); |
| 789 output.writeNode('type', node.type); | 790 output.writeNode('keyType', node.keyType); |
| 791 output.writeNode('valueType', node.valueType); |
| 790 output.writeNodeList('items', node.items); | 792 output.writeNodeList('items', node.items); |
| 791 } | 793 } |
| 792 | 794 |
| 793 void visitConditionalExpression(ConditionalExpression node) { | 795 void visitConditionalExpression(ConditionalExpression node) { |
| 794 output.heading('ConditionalExpression', node.span); | 796 output.heading('ConditionalExpression', node.span); |
| 795 output.writeNode('test', node.test); | 797 output.writeNode('test', node.test); |
| 796 output.writeNode('trueBranch', node.trueBranch); | 798 output.writeNode('trueBranch', node.trueBranch); |
| 797 output.writeNode('falseBranch', node.falseBranch); | 799 output.writeNode('falseBranch', node.falseBranch); |
| 798 } | 800 } |
| 799 | 801 |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 911 output.heading('DeclaredIdentifier', node.span); | 913 output.heading('DeclaredIdentifier', node.span); |
| 912 output.writeNode('type', node.type); | 914 output.writeNode('type', node.type); |
| 913 output.writeNode('name', node.name); | 915 output.writeNode('name', node.name); |
| 914 } | 916 } |
| 915 | 917 |
| 916 void visitTypeReference(TypeReference node) { | 918 void visitTypeReference(TypeReference node) { |
| 917 output.heading('TypeReference(' + output.toValue(node.type) + ")", node.span
); | 919 output.heading('TypeReference(' + output.toValue(node.type) + ")", node.span
); |
| 918 } | 920 } |
| 919 | 921 |
| 920 } | 922 } |
| OLD | NEW |