OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 dart2js.backend_api; | 5 library dart2js.backend_api; |
6 | 6 |
7 import 'dart:async' show Future; | 7 import 'dart:async' show Future; |
8 | 8 |
9 import '../compiler.dart' show | 9 import '../compiler.dart' show |
10 Compiler; | 10 Compiler; |
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 | 220 |
221 /// Call this method to enable support for `noSuchMethod`. | 221 /// Call this method to enable support for `noSuchMethod`. |
222 void enableNoSuchMethod(Enqueuer enqueuer) {} | 222 void enableNoSuchMethod(Enqueuer enqueuer) {} |
223 | 223 |
224 /// Returns whether or not `noSuchMethod` support has been enabled. | 224 /// Returns whether or not `noSuchMethod` support has been enabled. |
225 bool get enabledNoSuchMethod => false; | 225 bool get enabledNoSuchMethod => false; |
226 | 226 |
227 /// Call this method to enable support for isolates. | 227 /// Call this method to enable support for isolates. |
228 void enableIsolateSupport(Enqueuer enqueuer) {} | 228 void enableIsolateSupport(Enqueuer enqueuer) {} |
229 | 229 |
230 void registerRequiredType(DartType type) {} | 230 void registerRequiredType(DartType type, Element enclosingElement) {} |
231 | 231 |
232 void registerConstSymbol(String name, Registry registry) {} | 232 void registerConstSymbol(String name, Registry registry) {} |
233 void registerNewSymbol(Registry registry) {} | 233 void registerNewSymbol(Registry registry) {} |
234 | 234 |
235 bool isNullImplementation(ClassElement cls) { | 235 bool isNullImplementation(ClassElement cls) { |
236 return cls == compiler.nullClass; | 236 return cls == compiler.nullClass; |
237 } | 237 } |
238 | 238 |
239 ClassElement get intImplementation => compiler.intClass; | 239 ClassElement get intImplementation => compiler.intClass; |
240 ClassElement get doubleImplementation => compiler.doubleClass; | 240 ClassElement get doubleImplementation => compiler.doubleClass; |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
394 abstract class ForeignResolver { | 394 abstract class ForeignResolver { |
395 /// Returns the constant expression of [node], or `null` if [node] is not | 395 /// Returns the constant expression of [node], or `null` if [node] is not |
396 /// a constant expression. | 396 /// a constant expression. |
397 ConstantExpression getConstant(Node node); | 397 ConstantExpression getConstant(Node node); |
398 | 398 |
399 /// Registers [type] as instantiated. | 399 /// Registers [type] as instantiated. |
400 void registerInstantiatedType(InterfaceType type); | 400 void registerInstantiatedType(InterfaceType type); |
401 | 401 |
402 /// Resolves [typeName] to a type in the context of [node]. | 402 /// Resolves [typeName] to a type in the context of [node]. |
403 DartType resolveTypeFromString(Node node, String typeName); | 403 DartType resolveTypeFromString(Node node, String typeName); |
404 } | 404 } |
OLD | NEW |