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 13 matching lines...) Expand all Loading... |
24 import '../elements/elements.dart' show | 24 import '../elements/elements.dart' show |
25 ClassElement, | 25 ClassElement, |
26 ConstructorElement, | 26 ConstructorElement, |
27 Element, | 27 Element, |
28 FunctionElement, | 28 FunctionElement, |
29 LibraryElement, | 29 LibraryElement, |
30 MetadataAnnotation; | 30 MetadataAnnotation; |
31 import '../enqueue.dart' show | 31 import '../enqueue.dart' show |
32 Enqueuer, | 32 Enqueuer, |
33 CodegenEnqueuer, | 33 CodegenEnqueuer, |
34 ResolutionEnqueuer, | 34 ResolutionEnqueuer; |
35 WorldImpact; | |
36 import '../io/code_output.dart' show | 35 import '../io/code_output.dart' show |
37 CodeBuffer; | 36 CodeBuffer; |
38 import '../io/source_information.dart' show | 37 import '../io/source_information.dart' show |
39 SourceInformationStrategy; | 38 SourceInformationStrategy; |
40 import '../js_backend/js_backend.dart' as js_backend show | 39 import '../js_backend/js_backend.dart' as js_backend show |
41 JavaScriptBackend; | 40 JavaScriptBackend; |
42 import '../library_loader.dart' show | 41 import '../library_loader.dart' show |
43 LibraryLoader, | 42 LibraryLoader, |
44 LoadedLibraries; | 43 LoadedLibraries; |
45 import '../native/native.dart' as native show | 44 import '../native/native.dart' as native show |
46 NativeEnqueuer; | 45 NativeEnqueuer; |
47 import '../patch_parser.dart' show | 46 import '../patch_parser.dart' show |
48 checkNativeAnnotation; | 47 checkNativeAnnotation; |
49 import '../resolution/tree_elements.dart' show | 48 import '../resolution/tree_elements.dart' show |
50 TreeElements; | 49 TreeElements; |
51 import '../tree/tree.dart' show | 50 import '../tree/tree.dart' show |
52 Node, | 51 Node, |
53 Send; | 52 Send; |
54 import '../universe/call_structure.dart' show | 53 import '../universe/call_structure.dart' show |
55 CallStructure; | 54 CallStructure; |
| 55 import '../universe/world_impact.dart' show |
| 56 WorldImpact; |
56 | 57 |
57 import 'codegen.dart' show | 58 import 'codegen.dart' show |
58 CodegenWorkItem; | 59 CodegenWorkItem; |
59 import 'registry.dart' show | 60 import 'registry.dart' show |
60 Registry; | 61 Registry; |
61 import 'resolution.dart' show | 62 import 'resolution.dart' show |
62 ResolutionCallbacks; | 63 ResolutionCallbacks; |
63 import 'tasks.dart' show | 64 import 'tasks.dart' show |
64 CompilerTask; | 65 CompilerTask; |
65 import 'work.dart' show | 66 import 'work.dart' show |
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
392 /// 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 |
393 /// a constant expression. | 394 /// a constant expression. |
394 ConstantExpression getConstant(Node node); | 395 ConstantExpression getConstant(Node node); |
395 | 396 |
396 /// Registers [type] as instantiated. | 397 /// Registers [type] as instantiated. |
397 void registerInstantiatedType(InterfaceType type); | 398 void registerInstantiatedType(InterfaceType type); |
398 | 399 |
399 /// Resolves [typeName] to a type in the context of [node]. | 400 /// Resolves [typeName] to a type in the context of [node]. |
400 DartType resolveTypeFromString(Node node, String typeName); | 401 DartType resolveTypeFromString(Node node, String typeName); |
401 } | 402 } |
OLD | NEW |