| 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 484 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 495 } | 495 } |
| 496 | 496 |
| 497 Expression visitInterceptor(cps_ir.Interceptor node) { | 497 Expression visitInterceptor(cps_ir.Interceptor node) { |
| 498 return new Interceptor(getVariableUse(node.input), | 498 return new Interceptor(getVariableUse(node.input), |
| 499 node.interceptedClasses, | 499 node.interceptedClasses, |
| 500 node.sourceInformation); | 500 node.sourceInformation); |
| 501 } | 501 } |
| 502 | 502 |
| 503 Expression visitCreateInstance(cps_ir.CreateInstance node) { | 503 Expression visitCreateInstance(cps_ir.CreateInstance node) { |
| 504 return new CreateInstance( | 504 return new CreateInstance( |
| 505 node.classElement, | 505 node.dartType, |
| 506 translateArguments(node.arguments), | 506 translateArguments(node.arguments), |
| 507 translateArguments(node.typeInformation), | 507 translateArguments(node.typeInformation), |
| 508 node.sourceInformation); | 508 node.sourceInformation); |
| 509 } | 509 } |
| 510 | 510 |
| 511 Expression visitGetField(cps_ir.GetField node) { | 511 Expression visitGetField(cps_ir.GetField node) { |
| 512 return new GetField(getVariableUse(node.object), node.field, | 512 return new GetField(getVariableUse(node.object), node.field, |
| 513 objectIsNotNull: !node.object.definition.type.isNullable); | 513 objectIsNotNull: !node.object.definition.type.isNullable); |
| 514 } | 514 } |
| 515 | 515 |
| (...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 748 | 748 |
| 749 visitFunctionDefinition(cps_ir.FunctionDefinition node) { | 749 visitFunctionDefinition(cps_ir.FunctionDefinition node) { |
| 750 unexpectedNode(node); | 750 unexpectedNode(node); |
| 751 } | 751 } |
| 752 visitParameter(cps_ir.Parameter node) => unexpectedNode(node); | 752 visitParameter(cps_ir.Parameter node) => unexpectedNode(node); |
| 753 visitContinuation(cps_ir.Continuation node) => unexpectedNode(node); | 753 visitContinuation(cps_ir.Continuation node) => unexpectedNode(node); |
| 754 visitMutableVariable(cps_ir.MutableVariable node) => unexpectedNode(node); | 754 visitMutableVariable(cps_ir.MutableVariable node) => unexpectedNode(node); |
| 755 visitRethrow(cps_ir.Rethrow node) => unexpectedNode(node); | 755 visitRethrow(cps_ir.Rethrow node) => unexpectedNode(node); |
| 756 visitBoundsCheck(cps_ir.BoundsCheck node) => unexpectedNode(node); | 756 visitBoundsCheck(cps_ir.BoundsCheck node) => unexpectedNode(node); |
| 757 } | 757 } |
| OLD | NEW |