| 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 977 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 988 | 988 |
| 989 accept1(StatementVisitor1 visitor, arg) { | 989 accept1(StatementVisitor1 visitor, arg) { |
| 990 return visitor.visitYield(this, arg); | 990 return visitor.visitYield(this, arg); |
| 991 } | 991 } |
| 992 } | 992 } |
| 993 | 993 |
| 994 class NullCheck extends Statement { | 994 class NullCheck extends Statement { |
| 995 Expression condition; | 995 Expression condition; |
| 996 Expression value; | 996 Expression value; |
| 997 Selector selector; | 997 Selector selector; |
| 998 bool useSelector; |
| 998 Statement next; | 999 Statement next; |
| 999 SourceInformation sourceInformation; | 1000 SourceInformation sourceInformation; |
| 1000 | 1001 |
| 1001 NullCheck({this.condition, this.value, this.selector, this.next, | 1002 NullCheck({this.condition, this.value, this.selector, this.useSelector, |
| 1002 this.sourceInformation}); | 1003 this.next, this.sourceInformation}); |
| 1003 | 1004 |
| 1004 accept(StatementVisitor visitor) { | 1005 accept(StatementVisitor visitor) { |
| 1005 return visitor.visitNullCheck(this); | 1006 return visitor.visitNullCheck(this); |
| 1006 } | 1007 } |
| 1007 | 1008 |
| 1008 accept1(StatementVisitor1 visitor, arg) { | 1009 accept1(StatementVisitor1 visitor, arg) { |
| 1009 return visitor.visitNullCheck(this, arg); | 1010 return visitor.visitNullCheck(this, arg); |
| 1010 } | 1011 } |
| 1011 } | 1012 } |
| 1012 | 1013 |
| (...skipping 632 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1645 | 1646 |
| 1646 /// Number of uses of the current fallthrough target. | 1647 /// Number of uses of the current fallthrough target. |
| 1647 int get useCount => _stack.last.useCount; | 1648 int get useCount => _stack.last.useCount; |
| 1648 | 1649 |
| 1649 /// Indicate that a statement will fall through to the current fallthrough | 1650 /// Indicate that a statement will fall through to the current fallthrough |
| 1650 /// target. | 1651 /// target. |
| 1651 void use() { | 1652 void use() { |
| 1652 ++_stack.last.useCount; | 1653 ++_stack.last.useCount; |
| 1653 } | 1654 } |
| 1654 } | 1655 } |
| OLD | NEW |