| 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 '../compiler.dart' show | 10 import '../compiler.dart' show |
| 10 Compiler; | 11 Compiler; |
| 11 import '../compile_time_constants.dart' show | 12 import '../compile_time_constants.dart' show |
| 12 BackendConstantEnvironment, | 13 BackendConstantEnvironment, |
| 13 ConstantCompilerTask; | 14 ConstantCompilerTask; |
| 14 import '../constants/expressions.dart' show | 15 import '../constants/expressions.dart' show |
| 15 ConstantExpression; | 16 ConstantExpression; |
| 16 import '../constants/constant_system.dart' show | 17 import '../constants/constant_system.dart' show |
| 17 ConstantSystem; | 18 ConstantSystem; |
| 18 import '../constants/values.dart' show | 19 import '../constants/values.dart' show |
| 19 ConstantValue; | 20 ConstantValue; |
| 20 import '../dart_types.dart' show | 21 import '../dart_types.dart' show |
| 21 DartType, | 22 DartType, |
| 22 InterfaceType; | 23 InterfaceType; |
| 23 import '../diagnostics/spannable.dart' show | |
| 24 Spannable, | |
| 25 SpannableAssertionFailure; | |
| 26 import '../elements/elements.dart' show | 24 import '../elements/elements.dart' show |
| 27 ClassElement, | 25 ClassElement, |
| 28 ConstructorElement, | 26 ConstructorElement, |
| 29 Element, | 27 Element, |
| 30 FunctionElement, | 28 FunctionElement, |
| 31 LibraryElement, | 29 LibraryElement, |
| 32 MetadataAnnotation; | 30 MetadataAnnotation; |
| 33 import '../enqueue.dart' show | 31 import '../enqueue.dart' show |
| 34 Enqueuer, | 32 Enqueuer, |
| 35 CodegenEnqueuer, | 33 CodegenEnqueuer, |
| (...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 395 /// Returns the constant expression of [node], or `null` if [node] is not | 393 /// Returns the constant expression of [node], or `null` if [node] is not |
| 396 /// a constant expression. | 394 /// a constant expression. |
| 397 ConstantExpression getConstant(Node node); | 395 ConstantExpression getConstant(Node node); |
| 398 | 396 |
| 399 /// Registers [type] as instantiated. | 397 /// Registers [type] as instantiated. |
| 400 void registerInstantiatedType(InterfaceType type); | 398 void registerInstantiatedType(InterfaceType type); |
| 401 | 399 |
| 402 /// Resolves [typeName] to a type in the context of [node]. | 400 /// Resolves [typeName] to a type in the context of [node]. |
| 403 DartType resolveTypeFromString(Node node, String typeName); | 401 DartType resolveTypeFromString(Node node, String typeName); |
| 404 } | 402 } |
| OLD | NEW |