| 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/values.dart' as values; | 7 import '../constants/values.dart' as values; |
| 8 import '../dart_types.dart' show DartType, InterfaceType, TypeVariableType; | 8 import '../dart_types.dart' show DartType, InterfaceType, TypeVariableType; |
| 9 import '../elements/elements.dart'; | 9 import '../elements/elements.dart'; |
| 10 import '../io/source_information.dart' show SourceInformation; | 10 import '../io/source_information.dart' show SourceInformation; |
| (...skipping 668 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 679 } | 679 } |
| 680 } | 680 } |
| 681 } | 681 } |
| 682 | 682 |
| 683 class CreateBox extends Expression { | 683 class CreateBox extends Expression { |
| 684 accept(ExpressionVisitor visitor) => visitor.visitCreateBox(this); | 684 accept(ExpressionVisitor visitor) => visitor.visitCreateBox(this); |
| 685 accept1(ExpressionVisitor1 visitor, arg) => visitor.visitCreateBox(this, arg); | 685 accept1(ExpressionVisitor1 visitor, arg) => visitor.visitCreateBox(this, arg); |
| 686 } | 686 } |
| 687 | 687 |
| 688 class CreateInstance extends Expression { | 688 class CreateInstance extends Expression { |
| 689 ClassElement classElement; | 689 InterfaceType dartType; |
| 690 List<Expression> arguments; | 690 List<Expression> arguments; |
| 691 List<Expression> typeInformation; | 691 List<Expression> typeInformation; |
| 692 SourceInformation sourceInformation; | 692 SourceInformation sourceInformation; |
| 693 | 693 |
| 694 CreateInstance(this.classElement, this.arguments, | 694 CreateInstance(this.dartType, this.arguments, |
| 695 this.typeInformation, this.sourceInformation); | 695 this.typeInformation, this.sourceInformation); |
| 696 | 696 |
| 697 accept(ExpressionVisitor visitor) => visitor.visitCreateInstance(this); | 697 accept(ExpressionVisitor visitor) => visitor.visitCreateInstance(this); |
| 698 accept1(ExpressionVisitor1 visitor, arg) { | 698 accept1(ExpressionVisitor1 visitor, arg) { |
| 699 return visitor.visitCreateInstance(this, arg); | 699 return visitor.visitCreateInstance(this, arg); |
| 700 } | 700 } |
| 701 } | 701 } |
| 702 | 702 |
| 703 class GetField extends Expression { | 703 class GetField extends Expression { |
| 704 Expression object; | 704 Expression object; |
| (...skipping 908 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1613 | 1613 |
| 1614 /// Number of uses of the current fallthrough target. | 1614 /// Number of uses of the current fallthrough target. |
| 1615 int get useCount => _stack.last.useCount; | 1615 int get useCount => _stack.last.useCount; |
| 1616 | 1616 |
| 1617 /// Indicate that a statement will fall through to the current fallthrough | 1617 /// Indicate that a statement will fall through to the current fallthrough |
| 1618 /// target. | 1618 /// target. |
| 1619 void use() { | 1619 void use() { |
| 1620 ++_stack.last.useCount; | 1620 ++_stack.last.useCount; |
| 1621 } | 1621 } |
| 1622 } | 1622 } |
| OLD | NEW |