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 'common/names.dart' show Uris; | 9 import 'common/names.dart' show Uris; |
10 import 'common/tasks.dart' show CompilerTask, Measurer; | 10 import 'common/tasks.dart' show CompilerTask, Measurer; |
(...skipping 1465 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1476 } | 1476 } |
1477 | 1477 |
1478 Future processLibraryTags(LibraryElement library) { | 1478 Future processLibraryTags(LibraryElement library) { |
1479 return task.processLibraryTags(this, library); | 1479 return task.processLibraryTags(this, library); |
1480 } | 1480 } |
1481 } | 1481 } |
1482 | 1482 |
1483 /// Information on the set libraries loaded as a result of a call to | 1483 /// Information on the set libraries loaded as a result of a call to |
1484 /// [LibraryLoader.loadLibrary]. | 1484 /// [LibraryLoader.loadLibrary]. |
1485 abstract class LoadedLibraries { | 1485 abstract class LoadedLibraries { |
1486 /// The accesss the library object created corresponding to the library | 1486 /// The access the library object created corresponding to the library |
1487 /// passed to [LibraryLoader.loadLibrary]. | 1487 /// passed to [LibraryLoader.loadLibrary]. |
1488 LibraryEntity get rootLibrary; | 1488 LibraryEntity get rootLibrary; |
1489 | 1489 |
1490 /// Returns `true` if a library with canonical [uri] was loaded in this bulk. | 1490 /// Returns `true` if a library with canonical [uri] was loaded in this bulk. |
1491 bool containsLibrary(Uri uri); | 1491 bool containsLibrary(Uri uri); |
1492 | 1492 |
1493 /// Returns the library with canonical [uri] that was loaded in this bulk. | 1493 /// Returns the library with canonical [uri] that was loaded in this bulk. |
1494 LibraryEntity getLibrary(Uri uri); | 1494 LibraryEntity getLibrary(Uri uri); |
1495 | 1495 |
1496 /// Applies all libraries in this bulk to [f]. | 1496 /// Applies all libraries in this bulk to [f]. |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1678 } | 1678 } |
1679 | 1679 |
1680 /// API used by the library loader to synchronously scan a library or | 1680 /// API used by the library loader to synchronously scan a library or |
1681 /// compilation unit and ensure that their library tags are computed. | 1681 /// compilation unit and ensure that their library tags are computed. |
1682 abstract class ElementScanner { | 1682 abstract class ElementScanner { |
1683 void scanLibrary(LibraryElement library); | 1683 void scanLibrary(LibraryElement library); |
1684 void scanUnit(CompilationUnitElement unit); | 1684 void scanUnit(CompilationUnitElement unit); |
1685 } | 1685 } |
1686 | 1686 |
1687 const _reuseLibrarySubtaskName = "Reuse library"; | 1687 const _reuseLibrarySubtaskName = "Reuse library"; |
OLD | NEW |