| 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 '../dart2jslib.dart' as dart2js; | 7 import '../dart2jslib.dart' as dart2js; |
| 8 import '../dart_types.dart'; | 8 import '../dart_types.dart'; |
| 9 import '../elements/elements.dart'; | 9 import '../elements/elements.dart'; |
| 10 import '../cps_ir/cps_ir_nodes.dart' as cps_ir; | 10 import '../cps_ir/cps_ir_nodes.dart' as cps_ir; |
| (...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 322 internalError(CURRENT_ELEMENT_SPANNABLE, 'Unexpected IR node: $node'); | 322 internalError(CURRENT_ELEMENT_SPANNABLE, 'Unexpected IR node: $node'); |
| 323 } | 323 } |
| 324 | 324 |
| 325 // JS-specific nodes are handled by a subclass. | 325 // JS-specific nodes are handled by a subclass. |
| 326 visitSetField(cps_ir.SetField node) => unexpectedNode(node); | 326 visitSetField(cps_ir.SetField node) => unexpectedNode(node); |
| 327 visitIdentical(cps_ir.Identical node) => unexpectedNode(node); | 327 visitIdentical(cps_ir.Identical node) => unexpectedNode(node); |
| 328 visitInterceptor(cps_ir.Interceptor node) => unexpectedNode(node); | 328 visitInterceptor(cps_ir.Interceptor node) => unexpectedNode(node); |
| 329 visitCreateInstance(cps_ir.CreateInstance node) => unexpectedNode(node); | 329 visitCreateInstance(cps_ir.CreateInstance node) => unexpectedNode(node); |
| 330 visitGetField(cps_ir.GetField node) => unexpectedNode(node); | 330 visitGetField(cps_ir.GetField node) => unexpectedNode(node); |
| 331 visitCreateBox(cps_ir.CreateBox node) => unexpectedNode(node); | 331 visitCreateBox(cps_ir.CreateBox node) => unexpectedNode(node); |
| 332 visitCreateInvocationMirror(cps_ir.CreateInvocationMirror node) { |
| 333 return unexpectedNode(node); |
| 334 } |
| 332 | 335 |
| 333 // Executable definitions are not visited directly. They have 'build' | 336 // Executable definitions are not visited directly. They have 'build' |
| 334 // functions as entry points. | 337 // functions as entry points. |
| 335 visitFieldDefinition(cps_ir.FieldDefinition node) { | 338 visitFieldDefinition(cps_ir.FieldDefinition node) { |
| 336 return unexpectedNode(node); | 339 return unexpectedNode(node); |
| 337 } | 340 } |
| 338 visitFunctionDefinition(cps_ir.FunctionDefinition node) { | 341 visitFunctionDefinition(cps_ir.FunctionDefinition node) { |
| 339 return unexpectedNode(node); | 342 return unexpectedNode(node); |
| 340 } | 343 } |
| 341 visitConstructorDefinition(cps_ir.ConstructorDefinition node) { | 344 visitConstructorDefinition(cps_ir.ConstructorDefinition node) { |
| (...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 654 } | 657 } |
| 655 | 658 |
| 656 @override | 659 @override |
| 657 Node visitTypeExpression(cps_ir.TypeExpression node) { | 660 Node visitTypeExpression(cps_ir.TypeExpression node) { |
| 658 return new TypeExpression( | 661 return new TypeExpression( |
| 659 node.dartType, | 662 node.dartType, |
| 660 node.arguments.map(getVariableUse).toList()); | 663 node.arguments.map(getVariableUse).toList()); |
| 661 } | 664 } |
| 662 } | 665 } |
| 663 | 666 |
| OLD | NEW |