| 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 1414 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1425 | 1425 |
| 1426 visitSetStatic(SetStatic node) { | 1426 visitSetStatic(SetStatic node) { |
| 1427 node.value = visitExpression(node.value); | 1427 node.value = visitExpression(node.value); |
| 1428 return node; | 1428 return node; |
| 1429 } | 1429 } |
| 1430 | 1430 |
| 1431 visitCreateBox(CreateBox node) => node; | 1431 visitCreateBox(CreateBox node) => node; |
| 1432 | 1432 |
| 1433 visitCreateInstance(CreateInstance node) { | 1433 visitCreateInstance(CreateInstance node) { |
| 1434 _replaceExpressions(node.arguments); | 1434 _replaceExpressions(node.arguments); |
| 1435 _replaceExpressions(node.typeInformation); |
| 1435 return node; | 1436 return node; |
| 1436 } | 1437 } |
| 1437 | 1438 |
| 1438 visitReifyRuntimeType(ReifyRuntimeType node) { | 1439 visitReifyRuntimeType(ReifyRuntimeType node) { |
| 1439 node.value = visitExpression(node.value); | 1440 node.value = visitExpression(node.value); |
| 1440 return node; | 1441 return node; |
| 1441 } | 1442 } |
| 1442 | 1443 |
| 1443 visitReadTypeVariable(ReadTypeVariable node) { | 1444 visitReadTypeVariable(ReadTypeVariable node) { |
| 1444 node.target = visitExpression(node.target); | 1445 node.target = visitExpression(node.target); |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1537 | 1538 |
| 1538 /// Number of uses of the current fallthrough target. | 1539 /// Number of uses of the current fallthrough target. |
| 1539 int get useCount => _stack.last.useCount; | 1540 int get useCount => _stack.last.useCount; |
| 1540 | 1541 |
| 1541 /// Indicate that a statement will fall through to the current fallthrough | 1542 /// Indicate that a statement will fall through to the current fallthrough |
| 1542 /// target. | 1543 /// target. |
| 1543 void use() { | 1544 void use() { |
| 1544 ++_stack.last.useCount; | 1545 ++_stack.last.useCount; |
| 1545 } | 1546 } |
| 1546 } | 1547 } |
| OLD | NEW |