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.library_loader; | 5 library dart2js.library_loader; |
6 | 6 |
7 import 'dart:async'; | 7 import 'dart:async'; |
8 | 8 |
9 import 'dart2jslib.dart' show | 9 import 'dart2jslib.dart' show |
10 Compiler, | 10 Compiler, |
11 CompilerTask, | 11 CompilerTask, |
| 12 DiagnosticListener, |
| 13 MessageKind, |
| 14 Script, |
12 invariant; | 15 invariant; |
13 import 'diagnostic_listener.dart'; | 16 |
14 import 'elements/elements.dart' show | 17 import 'elements/elements.dart' show |
15 CompilationUnitElement, | 18 CompilationUnitElement, |
16 Element, | 19 Element, |
17 LibraryElement, | 20 LibraryElement, |
18 PrefixElement; | 21 PrefixElement; |
| 22 |
19 import 'elements/modelx.dart' show | 23 import 'elements/modelx.dart' show |
20 CompilationUnitElementX, | 24 CompilationUnitElementX, |
21 DeferredLoaderGetterElementX, | 25 DeferredLoaderGetterElementX, |
22 ErroneousElementX, | 26 ErroneousElementX, |
23 LibraryElementX, | 27 LibraryElementX, |
24 PrefixElementX; | 28 PrefixElementX; |
25 import 'messages.dart' show | 29 |
26 MessageKind; | |
27 import 'native/native.dart' as native; | 30 import 'native/native.dart' as native; |
28 import 'script.dart'; | 31 |
29 import 'tree/tree.dart'; | 32 import 'tree/tree.dart'; |
| 33 |
30 import 'util/util.dart' show | 34 import 'util/util.dart' show |
31 Link, | 35 Link, |
32 LinkBuilder; | 36 LinkBuilder; |
33 | 37 |
34 /** | 38 /** |
35 * [CompilerTask] for loading libraries and setting up the import/export scopes. | 39 * [CompilerTask] for loading libraries and setting up the import/export scopes. |
36 * | 40 * |
37 * The library loader uses four different kinds of URIs in different parts of | 41 * The library loader uses four different kinds of URIs in different parts of |
38 * the loading process. | 42 * the loading process. |
39 * | 43 * |
(...skipping 1172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1212 } | 1216 } |
1213 suffixes.add(const Link<Uri>().prepend(canonicalUri)); | 1217 suffixes.add(const Link<Uri>().prepend(canonicalUri)); |
1214 } | 1218 } |
1215 suffixChainMap[library] = suffixes; | 1219 suffixChainMap[library] = suffixes; |
1216 return; | 1220 return; |
1217 } | 1221 } |
1218 | 1222 |
1219 computeSuffixes(rootLibrary, const Link<Uri>()); | 1223 computeSuffixes(rootLibrary, const Link<Uri>()); |
1220 } | 1224 } |
1221 } | 1225 } |
OLD | NEW |