| 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 689 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 700 List<ConstDeclaration> localConstants, | 700 List<ConstDeclaration> localConstants, |
| 701 List<ConstantExpression> defaultParameterValues, | 701 List<ConstantExpression> defaultParameterValues, |
| 702 List<ClosureVariable> closureVariables) | 702 List<ClosureVariable> closureVariables) |
| 703 : super(element, parameters, body, localConstants, | 703 : super(element, parameters, body, localConstants, |
| 704 defaultParameterValues, closureVariables); | 704 defaultParameterValues, closureVariables); |
| 705 | 705 |
| 706 // 'Abstract' here means "has no body" and is used to represent external | 706 // 'Abstract' here means "has no body" and is used to represent external |
| 707 // constructors. | 707 // constructors. |
| 708 ConstructorDefinition.abstract( | 708 ConstructorDefinition.abstract( |
| 709 ConstructorElement element, | 709 ConstructorElement element, |
| 710 List<Parameter> parameters, | 710 List<Definition> parameters, |
| 711 List<ConstantExpression> defaultParameterValues) | 711 List<ConstantExpression> defaultParameterValues) |
| 712 : initializers = null, | 712 : initializers = null, |
| 713 super.abstract(element, parameters, defaultParameterValues); | 713 super.abstract(element, parameters, defaultParameterValues); |
| 714 | 714 |
| 715 accept(Visitor visitor) => visitor.visitConstructorDefinition(this); | 715 accept(Visitor visitor) => visitor.visitConstructorDefinition(this); |
| 716 applyPass(Pass pass) => pass.rewriteConstructorDefinition(this); | 716 applyPass(Pass pass) => pass.rewriteConstructorDefinition(this); |
| 717 } | 717 } |
| 718 | 718 |
| 719 List<Reference<Primitive>> _referenceList(Iterable<Primitive> definitions) { | 719 List<Reference<Primitive>> _referenceList(Iterable<Primitive> definitions) { |
| 720 return definitions.map((e) => new Reference<Primitive>(e)).toList(); | 720 return definitions.map((e) => new Reference<Primitive>(e)).toList(); |
| (...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1205 | 1205 |
| 1206 void visitIdentical(Identical node) { | 1206 void visitIdentical(Identical node) { |
| 1207 visitReference(node.left); | 1207 visitReference(node.left); |
| 1208 visitReference(node.right); | 1208 visitReference(node.right); |
| 1209 } | 1209 } |
| 1210 | 1210 |
| 1211 void visitInterceptor(Interceptor node) { | 1211 void visitInterceptor(Interceptor node) { |
| 1212 visitReference(node.input); | 1212 visitReference(node.input); |
| 1213 } | 1213 } |
| 1214 } | 1214 } |
| OLD | NEW |