| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 | 4 |
| 5 library tree_ir_nodes; | 5 library tree_ir_nodes; |
| 6 | 6 |
| 7 import '../constants/expressions.dart'; | 7 import '../constants/expressions.dart'; |
| 8 import '../constants/values.dart' as values; | 8 import '../constants/values.dart' as values; |
| 9 import '../cps_ir/cps_ir_nodes.dart' as cps_ir; | 9 import '../cps_ir/cps_ir_nodes.dart' as cps_ir; |
| 10 import '../dart_types.dart' show DartType, GenericType; | 10 import '../dart_types.dart' show DartType, GenericType; |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 assert(receiver != null); | 145 assert(receiver != null); |
| 146 } | 146 } |
| 147 | 147 |
| 148 accept(ExpressionVisitor visitor) => visitor.visitInvokeMethod(this); | 148 accept(ExpressionVisitor visitor) => visitor.visitInvokeMethod(this); |
| 149 } | 149 } |
| 150 | 150 |
| 151 class InvokeSuperMethod extends Expression implements Invoke { | 151 class InvokeSuperMethod extends Expression implements Invoke { |
| 152 final Selector selector; | 152 final Selector selector; |
| 153 final List<Expression> arguments; | 153 final List<Expression> arguments; |
| 154 | 154 |
| 155 InvokeSuperMethod(this.selector, this.arguments) ; | 155 InvokeSuperMethod(this.selector, this.arguments); |
| 156 | 156 |
| 157 accept(ExpressionVisitor visitor) => visitor.visitInvokeSuperMethod(this); | 157 accept(ExpressionVisitor visitor) => visitor.visitInvokeSuperMethod(this); |
| 158 } | 158 } |
| 159 | 159 |
| 160 /** | 160 /** |
| 161 * Call to a factory or generative constructor. | 161 * Call to a factory or generative constructor. |
| 162 */ | 162 */ |
| 163 class InvokeConstructor extends Expression implements Invoke { | 163 class InvokeConstructor extends Expression implements Invoke { |
| 164 final DartType type; | 164 final DartType type; |
| 165 final FunctionElement target; | 165 final FunctionElement target; |
| (...skipping 488 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 654 visitFunctionDeclaration(FunctionDeclaration node) { | 654 visitFunctionDeclaration(FunctionDeclaration node) { |
| 655 visitFunctionDefinition(node.definition); | 655 visitFunctionDefinition(node.definition); |
| 656 visitStatement(node.next); | 656 visitStatement(node.next); |
| 657 } | 657 } |
| 658 | 658 |
| 659 visitExpressionStatement(ExpressionStatement node) { | 659 visitExpressionStatement(ExpressionStatement node) { |
| 660 visitExpression(node.expression); | 660 visitExpression(node.expression); |
| 661 visitStatement(node.next); | 661 visitStatement(node.next); |
| 662 } | 662 } |
| 663 } | 663 } |
| OLD | NEW |