| 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 742 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 753 GetStatic.lazy(this.element, this.sourceInformation) : useLazyGetter = true; | 753 GetStatic.lazy(this.element, this.sourceInformation) : useLazyGetter = true; |
| 754 | 754 |
| 755 accept(ExpressionVisitor visitor) => visitor.visitGetStatic(this); | 755 accept(ExpressionVisitor visitor) => visitor.visitGetStatic(this); |
| 756 accept1(ExpressionVisitor1 visitor, arg) => visitor.visitGetStatic(this, arg); | 756 accept1(ExpressionVisitor1 visitor, arg) => visitor.visitGetStatic(this, arg); |
| 757 } | 757 } |
| 758 | 758 |
| 759 class SetStatic extends Expression { | 759 class SetStatic extends Expression { |
| 760 Element element; | 760 Element element; |
| 761 Expression value; | 761 Expression value; |
| 762 SourceInformation sourceInformation; | 762 SourceInformation sourceInformation; |
| 763 BuiltinOperator compound; |
| 763 | 764 |
| 764 SetStatic(this.element, this.value, this.sourceInformation); | 765 SetStatic(this.element, this.value, this.sourceInformation, {this.compound}); |
| 765 | 766 |
| 766 accept(ExpressionVisitor visitor) => visitor.visitSetStatic(this); | 767 accept(ExpressionVisitor visitor) => visitor.visitSetStatic(this); |
| 767 accept1(ExpressionVisitor1 visitor, arg) => visitor.visitSetStatic(this, arg); | 768 accept1(ExpressionVisitor1 visitor, arg) => visitor.visitSetStatic(this, arg); |
| 768 } | 769 } |
| 769 | 770 |
| 770 class GetLength extends Expression { | 771 class GetLength extends Expression { |
| 771 Expression object; | 772 Expression object; |
| 772 | 773 |
| 773 GetLength(this.object); | 774 GetLength(this.object); |
| 774 | 775 |
| (...skipping 838 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1613 | 1614 |
| 1614 /// Number of uses of the current fallthrough target. | 1615 /// Number of uses of the current fallthrough target. |
| 1615 int get useCount => _stack.last.useCount; | 1616 int get useCount => _stack.last.useCount; |
| 1616 | 1617 |
| 1617 /// Indicate that a statement will fall through to the current fallthrough | 1618 /// Indicate that a statement will fall through to the current fallthrough |
| 1618 /// target. | 1619 /// target. |
| 1619 void use() { | 1620 void use() { |
| 1620 ++_stack.last.useCount; | 1621 ++_stack.last.useCount; |
| 1621 } | 1622 } |
| 1622 } | 1623 } |
| OLD | NEW |