| 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 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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) {} |
| 231 | 231 |
| 232 void registerConstSymbol(String name, Registry registry) {} | 232 void registerConstSymbol(String name) {} |
| 233 void registerNewSymbol(Registry registry) {} | |
| 234 | 233 |
| 235 bool isNullImplementation(ClassElement cls) { | 234 bool isNullImplementation(ClassElement cls) { |
| 236 return cls == compiler.nullClass; | 235 return cls == compiler.nullClass; |
| 237 } | 236 } |
| 238 | 237 |
| 239 ClassElement get intImplementation => compiler.intClass; | 238 ClassElement get intImplementation => compiler.intClass; |
| 240 ClassElement get doubleImplementation => compiler.doubleClass; | 239 ClassElement get doubleImplementation => compiler.doubleClass; |
| 241 ClassElement get numImplementation => compiler.numClass; | 240 ClassElement get numImplementation => compiler.numClass; |
| 242 ClassElement get stringImplementation => compiler.stringClass; | 241 ClassElement get stringImplementation => compiler.stringClass; |
| 243 ClassElement get listImplementation => compiler.listClass; | 242 ClassElement get listImplementation => compiler.listClass; |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 395 /// Returns the constant expression of [node], or `null` if [node] is not | 394 /// Returns the constant expression of [node], or `null` if [node] is not |
| 396 /// a constant expression. | 395 /// a constant expression. |
| 397 ConstantExpression getConstant(Node node); | 396 ConstantExpression getConstant(Node node); |
| 398 | 397 |
| 399 /// Registers [type] as instantiated. | 398 /// Registers [type] as instantiated. |
| 400 void registerInstantiatedType(InterfaceType type); | 399 void registerInstantiatedType(InterfaceType type); |
| 401 | 400 |
| 402 /// Resolves [typeName] to a type in the context of [node]. | 401 /// Resolves [typeName] to a type in the context of [node]. |
| 403 DartType resolveTypeFromString(Node node, String typeName); | 402 DartType resolveTypeFromString(Node node, String typeName); |
| 404 } | 403 } |
| OLD | NEW |