| 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..0c1a8d2168e2f89a36c7f1abc2683cdf4e99d008 100644
|
| --- a/sdk/lib/_internal/compiler/implementation/library_loader.dart
|
| +++ b/sdk/lib/_internal/compiler/implementation/library_loader.dart
|
| @@ -556,6 +556,15 @@ class ImportLink {
|
| if (combinatorFilter.exclude(element)) return;
|
| prefixElement.addImport(element, import, compiler);
|
| });
|
| + if (import.isDeferred) {
|
| + prefixElement.addImport(
|
| + new DeferredLoaderGetterElementX(prefixElement),
|
| + import, compiler);
|
| + // TODO(sigurdm): When we remove support for the annotation based
|
| + // syntax the [PrefixElement] constructor should receive this
|
| + // information.
|
| + prefixElement.markAsDeferred(import);
|
| + }
|
| } else {
|
| importedLibrary.forEachExport((Element element) {
|
| compiler.withCurrentElement(importingLibrary, () {
|
|
|