| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 // IrNodes are kept in a separate library to have precise control over their | 5 // IrNodes are kept in a separate library to have precise control over their |
| 6 // dependencies on other parts of the system. | 6 // dependencies on other parts of the system. |
| 7 library dart2js.ir_nodes; | 7 library dart2js.ir_nodes; |
| 8 | 8 |
| 9 import '../constants/expressions.dart'; | 9 import '../constants/expressions.dart'; |
| 10 import '../constants/values.dart' as values show ConstantValue; | 10 import '../constants/values.dart' as values show ConstantValue; |
| (...skipping 965 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 976 visitConstructorDefinition(ConstructorDefinition node) { | 976 visitConstructorDefinition(ConstructorDefinition node) { |
| 977 processConstructorDefinition(node); | 977 processConstructorDefinition(node); |
| 978 node.parameters.forEach(visit); | 978 node.parameters.forEach(visit); |
| 979 node.initializers.forEach(visit); | 979 node.initializers.forEach(visit); |
| 980 visit(node.body); | 980 visit(node.body); |
| 981 } | 981 } |
| 982 | 982 |
| 983 processFieldInitializer(FieldInitializer node) {} | 983 processFieldInitializer(FieldInitializer node) {} |
| 984 visitFieldInitializer(FieldInitializer node) { | 984 visitFieldInitializer(FieldInitializer node) { |
| 985 processFieldInitializer(node); | 985 processFieldInitializer(node); |
| 986 visit(node.body.body); | 986 visit(node.body); |
| 987 } | 987 } |
| 988 | 988 |
| 989 processSuperInitializer(SuperInitializer node) {} | 989 processSuperInitializer(SuperInitializer node) {} |
| 990 visitSuperInitializer(SuperInitializer node) { | 990 visitSuperInitializer(SuperInitializer node) { |
| 991 processSuperInitializer(node); | 991 processSuperInitializer(node); |
| 992 node.arguments.forEach( | 992 node.arguments.forEach(visit); |
| 993 (RunnableBody argument) => visit(argument.body)); | |
| 994 } | 993 } |
| 995 | 994 |
| 996 // Expressions. | 995 // Expressions. |
| 997 | 996 |
| 998 processLetPrim(LetPrim node) {} | 997 processLetPrim(LetPrim node) {} |
| 999 visitLetPrim(LetPrim node) { | 998 visitLetPrim(LetPrim node) { |
| 1000 processLetPrim(node); | 999 processLetPrim(node); |
| 1001 visit(node.primitive); | 1000 visit(node.primitive); |
| 1002 visit(node.body); | 1001 visit(node.body); |
| 1003 } | 1002 } |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1132 } | 1131 } |
| 1133 | 1132 |
| 1134 processMutableVariable(node) {} | 1133 processMutableVariable(node) {} |
| 1135 visitMutableVariable(MutableVariable node) { | 1134 visitMutableVariable(MutableVariable node) { |
| 1136 processMutableVariable(node); | 1135 processMutableVariable(node); |
| 1137 } | 1136 } |
| 1138 | 1137 |
| 1139 processGetMutableVariable(GetMutableVariable node) {} | 1138 processGetMutableVariable(GetMutableVariable node) {} |
| 1140 visitGetMutableVariable(GetMutableVariable node) { | 1139 visitGetMutableVariable(GetMutableVariable node) { |
| 1141 processGetMutableVariable(node); | 1140 processGetMutableVariable(node); |
| 1141 processReference(node.variable); |
| 1142 } | 1142 } |
| 1143 | 1143 |
| 1144 processParameter(Parameter node) {} | 1144 processParameter(Parameter node) {} |
| 1145 visitParameter(Parameter node) => processParameter(node); | 1145 visitParameter(Parameter node) => processParameter(node); |
| 1146 | 1146 |
| 1147 processContinuation(Continuation node) {} | 1147 processContinuation(Continuation node) {} |
| 1148 visitContinuation(Continuation node) { | 1148 visitContinuation(Continuation node) { |
| 1149 processContinuation(node); | 1149 processContinuation(node); |
| 1150 node.parameters.forEach(visitParameter); | 1150 node.parameters.forEach(visitParameter); |
| 1151 if (node.body != null) visit(node.body); | 1151 if (node.body != null) visit(node.body); |
| (...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1442 | 1442 |
| 1443 void visitIdentical(Identical node) { | 1443 void visitIdentical(Identical node) { |
| 1444 visitReference(node.left); | 1444 visitReference(node.left); |
| 1445 visitReference(node.right); | 1445 visitReference(node.right); |
| 1446 } | 1446 } |
| 1447 | 1447 |
| 1448 void visitInterceptor(Interceptor node) { | 1448 void visitInterceptor(Interceptor node) { |
| 1449 visitReference(node.input); | 1449 visitReference(node.input); |
| 1450 } | 1450 } |
| 1451 } | 1451 } |
| OLD | NEW |