Chromium Code Reviews| 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 7daad88fd66af583eaa230139b6ead656d084a66..5ae77f5a1b3be63d7bdf8ec0903ad24c25c7f834 100644 |
| --- a/sdk/lib/_internal/compiler/implementation/library_loader.dart |
| +++ b/sdk/lib/_internal/compiler/implementation/library_loader.dart |
| @@ -556,6 +556,12 @@ class ImportLink { |
| if (combinatorFilter.exclude(element)) return; |
| prefixElement.addImport(element, import, compiler); |
| }); |
| + if (import.isDeferred) { |
| + prefixElement.addImport( |
| + new DeferredLoaderFunctionElementX(prefixElement), |
| + import, compiler); |
| + prefixElement.markAsDeferred(import); |
|
Johnni Winther
2014/03/18 12:29:14
Add a TODO to make (a deferred) [import] an argume
sigurdm
2014/03/20 12:26:33
Done.
|
| + } |
| } else { |
| importedLibrary.forEachExport((Element element) { |
| compiler.withCurrentElement(importingLibrary, () { |