| 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, | 12 DiagnosticListener, |
| 13 MessageKind, | 13 MessageKind, |
| 14 Script, | 14 Script, |
| 15 invariant; | 15 invariant; |
| 16 | 16 |
| 17 import 'elements/elements.dart' show | 17 import 'elements/elements.dart' show |
| 18 CompilationUnitElement, | 18 CompilationUnitElement, |
| 19 Element, | 19 Element, |
| 20 LibraryElement, | 20 LibraryElement, |
| 21 PrefixElement; | 21 PrefixElement; |
| 22 | 22 |
| 23 import 'elements/modelx.dart' show | 23 import 'elements/modelx.dart' show |
| 24 CompilationUnitElementX, | 24 CompilationUnitElementX, |
| 25 DeferredLoaderGetterElementX, | 25 DeferredLoaderGetterElementX, |
| 26 ErroneousElementX, | 26 ErroneousElementX, |
| 27 LibraryElementX, | 27 LibraryElementX, |
| 28 PrefixElementX; | 28 PrefixElementX; |
| 29 | 29 |
| 30 import 'helpers/helpers.dart'; // Included for debug helpers. | |
| 31 | |
| 32 import 'native/native.dart' as native; | 30 import 'native/native.dart' as native; |
| 33 | 31 |
| 34 import 'tree/tree.dart'; | 32 import 'tree/tree.dart'; |
| 35 | 33 |
| 36 import 'util/util.dart' show | 34 import 'util/util.dart' show |
| 37 Link, | 35 Link, |
| 38 LinkBuilder; | 36 LinkBuilder; |
| 39 | 37 |
| 40 /** | 38 /** |
| 41 * [CompilerTask] for loading libraries and setting up the import/export scopes. | 39 * [CompilerTask] for loading libraries and setting up the import/export scopes. |
| (...skipping 1154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1196 } | 1194 } |
| 1197 suffixes.add(const Link<Uri>().prepend(canonicalUri)); | 1195 suffixes.add(const Link<Uri>().prepend(canonicalUri)); |
| 1198 } | 1196 } |
| 1199 suffixChainMap[library] = suffixes; | 1197 suffixChainMap[library] = suffixes; |
| 1200 return; | 1198 return; |
| 1201 } | 1199 } |
| 1202 | 1200 |
| 1203 computeSuffixes(rootLibrary, const Link<Uri>()); | 1201 computeSuffixes(rootLibrary, const Link<Uri>()); |
| 1204 } | 1202 } |
| 1205 } | 1203 } |
| OLD | NEW |