| 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'; | |
| 8 import '../constants/values.dart' as values; | 7 import '../constants/values.dart' as values; |
| 9 import '../dart_types.dart' show DartType, InterfaceType, TypeVariableType; | 8 import '../dart_types.dart' show DartType, InterfaceType, TypeVariableType; |
| 10 import '../elements/elements.dart'; | 9 import '../elements/elements.dart'; |
| 11 import '../io/source_information.dart' show SourceInformation; | 10 import '../io/source_information.dart' show SourceInformation; |
| 12 import '../types/types.dart' show TypeMask; | 11 import '../types/types.dart' show TypeMask; |
| 13 import '../universe/universe.dart' show Selector; | 12 import '../universe/universe.dart' show Selector; |
| 14 | 13 |
| 15 import '../cps_ir/builtin_operator.dart'; | 14 import '../cps_ir/builtin_operator.dart'; |
| 16 export '../cps_ir/builtin_operator.dart'; | 15 export '../cps_ir/builtin_operator.dart'; |
| 17 | 16 |
| (...skipping 790 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 808 } | 807 } |
| 809 | 808 |
| 810 accept1(ExpressionVisitor1 visitor, arg) { | 809 accept1(ExpressionVisitor1 visitor, arg) { |
| 811 return visitor.visitCreateInvocationMirror(this, arg); | 810 return visitor.visitCreateInvocationMirror(this, arg); |
| 812 } | 811 } |
| 813 } | 812 } |
| 814 | 813 |
| 815 class Interceptor extends Expression { | 814 class Interceptor extends Expression { |
| 816 Expression input; | 815 Expression input; |
| 817 Set<ClassElement> interceptedClasses; | 816 Set<ClassElement> interceptedClasses; |
| 817 final SourceInformation sourceInformation; |
| 818 | 818 |
| 819 Interceptor(this.input, this.interceptedClasses); | 819 Interceptor(this.input, this.interceptedClasses, this.sourceInformation); |
| 820 | 820 |
| 821 accept(ExpressionVisitor visitor) { | 821 accept(ExpressionVisitor visitor) { |
| 822 return visitor.visitInterceptor(this); | 822 return visitor.visitInterceptor(this); |
| 823 } | 823 } |
| 824 | 824 |
| 825 accept1(ExpressionVisitor1 visitor, arg) { | 825 accept1(ExpressionVisitor1 visitor, arg) { |
| 826 return visitor.visitInterceptor(this, arg); | 826 return visitor.visitInterceptor(this, arg); |
| 827 } | 827 } |
| 828 } | 828 } |
| 829 | 829 |
| (...skipping 622 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1452 | 1452 |
| 1453 /// Number of uses of the current fallthrough target. | 1453 /// Number of uses of the current fallthrough target. |
| 1454 int get useCount => _stack.last.useCount; | 1454 int get useCount => _stack.last.useCount; |
| 1455 | 1455 |
| 1456 /// Indicate that a statement will fall through to the current fallthrough | 1456 /// Indicate that a statement will fall through to the current fallthrough |
| 1457 /// target. | 1457 /// target. |
| 1458 void use() { | 1458 void use() { |
| 1459 ++_stack.last.useCount; | 1459 ++_stack.last.useCount; |
| 1460 } | 1460 } |
| 1461 } | 1461 } |
| OLD | NEW |