| Index: sdk/lib/_internal/compiler/implementation/library_loader.dart
|
| diff --git a/sdk/lib/_internal/compiler/implementation/library_loader.dart b/sdk/lib/_internal/compiler/implementation/library_loader.dart
|
| index 8f4f224a52dd305fdc4e27fcc83a5e3da7295ebb..a0401d090b036edc7c3693848166645c2e45ca60 100644
|
| --- a/sdk/lib/_internal/compiler/implementation/library_loader.dart
|
| +++ b/sdk/lib/_internal/compiler/implementation/library_loader.dart
|
| @@ -220,6 +220,7 @@ class HideFilter extends CombinatorFilter {
|
| class LibraryLoaderTask extends LibraryLoader {
|
| LibraryLoaderTask(Compiler compiler) : super(compiler);
|
| String get name => 'LibraryLoader';
|
| + List onLibraryLoadedCallbacks = [];
|
|
|
| final Map<String, LibraryElement> libraryNames =
|
| new LinkedHashMap<String, LibraryElement>();
|
| @@ -234,6 +235,9 @@ class LibraryLoaderTask extends LibraryLoader {
|
| createLibrary(currentHandler, null, resolvedUri, node, canonicalUri);
|
| currentHandler.computeExports();
|
| currentHandler = null;
|
| + var workList = onLibraryLoadedCallbacks;
|
| + onLibraryLoadedCallbacks = [];
|
| + workList.forEach((f) => f());
|
| return library;
|
| });
|
| }
|
| @@ -433,7 +437,8 @@ class LibraryLoaderTask extends LibraryLoader {
|
| compiler.scanner.scanLibrary(library);
|
| processLibraryTags(handler, library);
|
| handler.registerLibraryExports(library);
|
| - compiler.onLibraryScanned(library, resolvedUri);
|
| + onLibraryLoadedCallbacks.add(
|
| + () => compiler.onLibraryLoaded(library, resolvedUri));
|
| });
|
| }
|
| return library;
|
|
|