| 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 '../common.dart'; | 9 import '../common.dart'; |
| 10 import '../compiler.dart' show | 10 import '../compiler.dart' show |
| (...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 219 | 219 |
| 220 /// Call this method to enable support for `noSuchMethod`. | 220 /// Call this method to enable support for `noSuchMethod`. |
| 221 void enableNoSuchMethod(Enqueuer enqueuer) {} | 221 void enableNoSuchMethod(Enqueuer enqueuer) {} |
| 222 | 222 |
| 223 /// Returns whether or not `noSuchMethod` support has been enabled. | 223 /// Returns whether or not `noSuchMethod` support has been enabled. |
| 224 bool get enabledNoSuchMethod => false; | 224 bool get enabledNoSuchMethod => false; |
| 225 | 225 |
| 226 /// Call this method to enable support for isolates. | 226 /// Call this method to enable support for isolates. |
| 227 void enableIsolateSupport(Enqueuer enqueuer) {} | 227 void enableIsolateSupport(Enqueuer enqueuer) {} |
| 228 | 228 |
| 229 void registerRequiredType(DartType type) {} | |
| 230 | |
| 231 void registerConstSymbol(String name) {} | 229 void registerConstSymbol(String name) {} |
| 232 | 230 |
| 233 bool isNullImplementation(ClassElement cls) { | 231 bool isNullImplementation(ClassElement cls) { |
| 234 return cls == compiler.nullClass; | 232 return cls == compiler.nullClass; |
| 235 } | 233 } |
| 236 | 234 |
| 237 ClassElement get intImplementation => compiler.intClass; | 235 ClassElement get intImplementation => compiler.intClass; |
| 238 ClassElement get doubleImplementation => compiler.doubleClass; | 236 ClassElement get doubleImplementation => compiler.doubleClass; |
| 239 ClassElement get numImplementation => compiler.numClass; | 237 ClassElement get numImplementation => compiler.numClass; |
| 240 ClassElement get stringImplementation => compiler.stringClass; | 238 ClassElement get stringImplementation => compiler.stringClass; |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 403 /// Returns the constant expression of [node], or `null` if [node] is not | 401 /// Returns the constant expression of [node], or `null` if [node] is not |
| 404 /// a constant expression. | 402 /// a constant expression. |
| 405 ConstantExpression getConstant(Node node); | 403 ConstantExpression getConstant(Node node); |
| 406 | 404 |
| 407 /// Registers [type] as instantiated. | 405 /// Registers [type] as instantiated. |
| 408 void registerInstantiatedType(InterfaceType type); | 406 void registerInstantiatedType(InterfaceType type); |
| 409 | 407 |
| 410 /// Resolves [typeName] to a type in the context of [node]. | 408 /// Resolves [typeName] to a type in the context of [node]. |
| 411 DartType resolveTypeFromString(Node node, String typeName); | 409 DartType resolveTypeFromString(Node node, String typeName); |
| 412 } | 410 } |
| OLD | NEW |