| 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_builder; | 5 library tree_ir_builder; |
| 6 | 6 |
| 7 import '../common.dart'; | 7 import '../common.dart'; |
| 8 import '../constants/values.dart'; | 8 import '../constants/values.dart'; |
| 9 import '../cps_ir/cps_ir_nodes.dart' as cps_ir; | 9 import '../cps_ir/cps_ir_nodes.dart' as cps_ir; |
| 10 import '../elements/elements.dart'; | 10 import '../elements/elements.dart'; |
| (...skipping 700 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 711 node.dependency); | 711 node.dependency); |
| 712 }; | 712 }; |
| 713 } | 713 } |
| 714 } | 714 } |
| 715 | 715 |
| 716 visitNullCheck(cps_ir.NullCheck node) => (Statement next) { | 716 visitNullCheck(cps_ir.NullCheck node) => (Statement next) { |
| 717 return new NullCheck( | 717 return new NullCheck( |
| 718 condition: getVariableUseOrNull(node.condition), | 718 condition: getVariableUseOrNull(node.condition), |
| 719 value: getVariableUse(node.value), | 719 value: getVariableUse(node.value), |
| 720 selector: node.selector, | 720 selector: node.selector, |
| 721 useSelector: node.useSelector, |
| 721 next: next, | 722 next: next, |
| 722 sourceInformation: node.sourceInformation); | 723 sourceInformation: node.sourceInformation); |
| 723 }; | 724 }; |
| 724 | 725 |
| 725 Expression visitGetLazyStatic(cps_ir.GetLazyStatic node) { | 726 Expression visitGetLazyStatic(cps_ir.GetLazyStatic node) { |
| 726 return new GetStatic.lazy(node.element, node.sourceInformation); | 727 return new GetStatic.lazy(node.element, node.sourceInformation); |
| 727 } | 728 } |
| 728 | 729 |
| 729 @override | 730 @override |
| 730 NodeCallback visitYield(cps_ir.Yield node) { | 731 NodeCallback visitYield(cps_ir.Yield node) { |
| (...skipping 23 matching lines...) Expand all Loading... |
| 754 internalError(CURRENT_ELEMENT_SPANNABLE, 'Unexpected IR node: $node'); | 755 internalError(CURRENT_ELEMENT_SPANNABLE, 'Unexpected IR node: $node'); |
| 755 } | 756 } |
| 756 | 757 |
| 757 visitFunctionDefinition(cps_ir.FunctionDefinition node) { | 758 visitFunctionDefinition(cps_ir.FunctionDefinition node) { |
| 758 unexpectedNode(node); | 759 unexpectedNode(node); |
| 759 } | 760 } |
| 760 visitParameter(cps_ir.Parameter node) => unexpectedNode(node); | 761 visitParameter(cps_ir.Parameter node) => unexpectedNode(node); |
| 761 visitContinuation(cps_ir.Continuation node) => unexpectedNode(node); | 762 visitContinuation(cps_ir.Continuation node) => unexpectedNode(node); |
| 762 visitMutableVariable(cps_ir.MutableVariable node) => unexpectedNode(node); | 763 visitMutableVariable(cps_ir.MutableVariable node) => unexpectedNode(node); |
| 763 } | 764 } |
| OLD | NEW |