| 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 1516 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1527 return node; | 1527 return node; |
| 1528 } | 1528 } |
| 1529 | 1529 |
| 1530 visitAwait(Await node) { | 1530 visitAwait(Await node) { |
| 1531 node.input = visitExpression(node.input); | 1531 node.input = visitExpression(node.input); |
| 1532 return node; | 1532 return node; |
| 1533 } | 1533 } |
| 1534 | 1534 |
| 1535 visitYield(Yield node) { | 1535 visitYield(Yield node) { |
| 1536 node.input = visitExpression(node.input); | 1536 node.input = visitExpression(node.input); |
| 1537 node.next = visitStatement(node.next); |
| 1537 return node; | 1538 return node; |
| 1538 } | 1539 } |
| 1539 } | 1540 } |
| 1540 | 1541 |
| 1541 class FallthroughTarget { | 1542 class FallthroughTarget { |
| 1542 final Statement target; | 1543 final Statement target; |
| 1543 int useCount = 0; | 1544 int useCount = 0; |
| 1544 | 1545 |
| 1545 FallthroughTarget(this.target); | 1546 FallthroughTarget(this.target); |
| 1546 } | 1547 } |
| (...skipping 19 matching lines...) Expand all Loading... |
| 1566 | 1567 |
| 1567 /// Number of uses of the current fallthrough target. | 1568 /// Number of uses of the current fallthrough target. |
| 1568 int get useCount => _stack.last.useCount; | 1569 int get useCount => _stack.last.useCount; |
| 1569 | 1570 |
| 1570 /// Indicate that a statement will fall through to the current fallthrough | 1571 /// Indicate that a statement will fall through to the current fallthrough |
| 1571 /// target. | 1572 /// target. |
| 1572 void use() { | 1573 void use() { |
| 1573 ++_stack.last.useCount; | 1574 ++_stack.last.useCount; |
| 1574 } | 1575 } |
| 1575 } | 1576 } |
| OLD | NEW |