| 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 backend_ast_emitter; | 5 library backend_ast_emitter; |
| 6 | 6 |
| 7 import '../tree_ir/tree_ir_nodes.dart' as tree; | 7 import '../tree_ir/tree_ir_nodes.dart' as tree; |
| 8 import 'backend_ast_nodes.dart'; | 8 import 'backend_ast_nodes.dart'; |
| 9 import '../constants/expressions.dart'; | 9 import '../constants/expressions.dart'; |
| 10 import '../constants/values.dart'; | 10 import '../constants/values.dart'; |
| (...skipping 932 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 943 visitSetField(tree.SetField node, arg) => errorUnsupportedNode(node); | 943 visitSetField(tree.SetField node, arg) => errorUnsupportedNode(node); |
| 944 | 944 |
| 945 @override | 945 @override |
| 946 visitCreateBox(tree.CreateBox node, arg) => errorUnsupportedNode(node); | 946 visitCreateBox(tree.CreateBox node, arg) => errorUnsupportedNode(node); |
| 947 | 947 |
| 948 @override | 948 @override |
| 949 visitCreateInstance(tree.CreateInstance node, arg) { | 949 visitCreateInstance(tree.CreateInstance node, arg) { |
| 950 return errorUnsupportedNode(node); | 950 return errorUnsupportedNode(node); |
| 951 } | 951 } |
| 952 | 952 |
| 953 @override |
| 954 Expression visitReadTypeVariable(tree.ReadTypeVariable node, arg) { |
| 955 return errorUnsupportedNode(node); |
| 956 } |
| 957 |
| 958 @override |
| 959 Expression visitReifyRuntimeType(tree.ReifyRuntimeType node, arg) { |
| 960 return errorUnsupportedNode(node); |
| 961 } |
| 962 |
| 953 errorUnsupportedNode(tree.JsSpecificNode node) { | 963 errorUnsupportedNode(tree.JsSpecificNode node) { |
| 954 throw '$node not supported by dart backend'; | 964 throw '$node not supported by dart backend'; |
| 955 } | 965 } |
| 956 } | 966 } |
| 957 | 967 |
| 958 class TypeGenerator { | 968 class TypeGenerator { |
| 959 | 969 |
| 960 /// TODO(johnniwinther): Remove this when issue 21283 has been resolved. | 970 /// TODO(johnniwinther): Remove this when issue 21283 has been resolved. |
| 961 static int pseudoNameCounter = 0; | 971 static int pseudoNameCounter = 0; |
| 962 | 972 |
| (...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1298 : super(name, ElementKind.VARIABLE, enclosingElement, variables, null); | 1308 : super(name, ElementKind.VARIABLE, enclosingElement, variables, null); |
| 1299 | 1309 |
| 1300 ExecutableElement get executableContext => enclosingElement; | 1310 ExecutableElement get executableContext => enclosingElement; |
| 1301 | 1311 |
| 1302 ExecutableElement get memberContext => executableContext.memberContext; | 1312 ExecutableElement get memberContext => executableContext.memberContext; |
| 1303 | 1313 |
| 1304 bool get isLocal => true; | 1314 bool get isLocal => true; |
| 1305 | 1315 |
| 1306 LibraryElement get implementationLibrary => enclosingElement.library; | 1316 LibraryElement get implementationLibrary => enclosingElement.library; |
| 1307 } | 1317 } |
| OLD | NEW |