| 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 dart_tree; | 5 library dart_tree; |
| 6 | 6 |
| 7 import '../dart2jslib.dart' as dart2js; | 7 import '../dart2jslib.dart' as dart2js; |
| 8 import '../elements/elements.dart'; | 8 import '../elements/elements.dart'; |
| 9 import '../universe/universe.dart'; | 9 import '../universe/universe.dart'; |
| 10 import '../ir/ir_nodes.dart' as ir; | 10 import '../ir/ir_nodes.dart' as ir; |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 Constant(this.expression, this.value); | 181 Constant(this.expression, this.value); |
| 182 | 182 |
| 183 Constant.primitive(dart2js.PrimitiveConstant primitiveValue) | 183 Constant.primitive(dart2js.PrimitiveConstant primitiveValue) |
| 184 : expression = new PrimitiveConstExp(primitiveValue), | 184 : expression = new PrimitiveConstExp(primitiveValue), |
| 185 value = primitiveValue; | 185 value = primitiveValue; |
| 186 | 186 |
| 187 accept(ExpressionVisitor visitor) => visitor.visitConstant(this); | 187 accept(ExpressionVisitor visitor) => visitor.visitConstant(this); |
| 188 } | 188 } |
| 189 | 189 |
| 190 class This extends Expression { | 190 class This extends Expression { |
| 191 accept(Visitor visitor) => visitor.visitThis(this); | 191 accept(ExpressionVisitor visitor) => visitor.visitThis(this); |
| 192 } | 192 } |
| 193 | 193 |
| 194 class ReifyTypeVar extends Expression { | 194 class ReifyTypeVar extends Expression { |
| 195 TypeVariableElement element; | 195 TypeVariableElement element; |
| 196 | 196 |
| 197 ReifyTypeVar(this.element); | 197 ReifyTypeVar(this.element); |
| 198 | 198 |
| 199 accept(Visitor visitor) => visitor.visitReifyTypeVar(this); | 199 accept(ExpressionVisitor visitor) => visitor.visitReifyTypeVar(this); |
| 200 } | 200 } |
| 201 | 201 |
| 202 class LiteralList extends Expression { | 202 class LiteralList extends Expression { |
| 203 final GenericType type; | 203 final GenericType type; |
| 204 final List<Expression> values; | 204 final List<Expression> values; |
| 205 | 205 |
| 206 LiteralList(this.type, this.values); | 206 LiteralList(this.type, this.values); |
| 207 | 207 |
| 208 accept(ExpressionVisitor visitor) => visitor.visitLiteralList(this); | 208 accept(ExpressionVisitor visitor) => visitor.visitLiteralList(this); |
| 209 } | 209 } |
| (...skipping 1775 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1985 } | 1985 } |
| 1986 } | 1986 } |
| 1987 | 1987 |
| 1988 /// Destructively updates each entry of [l] with the result of visiting it. | 1988 /// Destructively updates each entry of [l] with the result of visiting it. |
| 1989 void _rewriteList(List<Expression> l) { | 1989 void _rewriteList(List<Expression> l) { |
| 1990 for (int i = 0; i < l.length; i++) { | 1990 for (int i = 0; i < l.length; i++) { |
| 1991 l[i] = visitExpression(l[i]); | 1991 l[i] = visitExpression(l[i]); |
| 1992 } | 1992 } |
| 1993 } | 1993 } |
| 1994 } | 1994 } |
| OLD | NEW |