| 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.optimization.statement_rewriter; | 5 library tree_ir.optimization.statement_rewriter; |
| 6 | 6 |
| 7 import 'optimization.dart' show Pass; | 7 import 'optimization.dart' show Pass; |
| 8 import '../tree_ir_nodes.dart'; | 8 import '../tree_ir_nodes.dart'; |
| 9 import '../../io/source_information.dart'; | 9 import '../../io/source_information.dart'; |
| 10 | 10 |
| (...skipping 719 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 730 | 730 |
| 731 Expression visitGetStatic(GetStatic node) { | 731 Expression visitGetStatic(GetStatic node) { |
| 732 return node; | 732 return node; |
| 733 } | 733 } |
| 734 | 734 |
| 735 Expression visitSetStatic(SetStatic node) { | 735 Expression visitSetStatic(SetStatic node) { |
| 736 node.value = visitExpression(node.value); | 736 node.value = visitExpression(node.value); |
| 737 return node; | 737 return node; |
| 738 } | 738 } |
| 739 | 739 |
| 740 Expression visitGetTypeTestProperty(GetTypeTestProperty node) { | |
| 741 node.object = visitExpression(node.object); | |
| 742 return node; | |
| 743 } | |
| 744 | |
| 745 Expression visitCreateBox(CreateBox node) { | 740 Expression visitCreateBox(CreateBox node) { |
| 746 return node; | 741 return node; |
| 747 } | 742 } |
| 748 | 743 |
| 749 Expression visitCreateInstance(CreateInstance node) { | 744 Expression visitCreateInstance(CreateInstance node) { |
| 750 _rewriteList(node.arguments); | 745 _rewriteList(node.arguments); |
| 751 return node; | 746 return node; |
| 752 } | 747 } |
| 753 | 748 |
| 754 Expression visitReifyRuntimeType(ReifyRuntimeType node) { | 749 Expression visitReifyRuntimeType(ReifyRuntimeType node) { |
| (...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1239 VariableUseVisitor(this.callback); | 1234 VariableUseVisitor(this.callback); |
| 1240 | 1235 |
| 1241 visitVariableUse(VariableUse use) => callback(use); | 1236 visitVariableUse(VariableUse use) => callback(use); |
| 1242 | 1237 |
| 1243 visitInnerFunction(FunctionDefinition node) {} | 1238 visitInnerFunction(FunctionDefinition node) {} |
| 1244 | 1239 |
| 1245 static void visit(Expression node, VariableUseCallback callback) { | 1240 static void visit(Expression node, VariableUseCallback callback) { |
| 1246 new VariableUseVisitor(callback).visitExpression(node); | 1241 new VariableUseVisitor(callback).visitExpression(node); |
| 1247 } | 1242 } |
| 1248 } | 1243 } |
| OLD | NEW |