Index: pkg/analyzer/lib/src/dart/element/element.dart |
diff --git a/pkg/analyzer/lib/src/dart/element/element.dart b/pkg/analyzer/lib/src/dart/element/element.dart |
index 57c8d14c73e748b8e4db5e39c3c79988ff08caa3..fb7779f3cc02cf192e6cc77ab4c71b8f57c9a71a 100644 |
--- a/pkg/analyzer/lib/src/dart/element/element.dart |
+++ b/pkg/analyzer/lib/src/dart/element/element.dart |
@@ -5880,16 +5880,11 @@ class LibraryElementImpl extends ElementImpl implements LibraryElement { |
for (int i = 0; i < length; i++) { |
UnlinkedExportPublic serializedExportPublic = |
unlinkedPublicExports[i]; |
- LibraryElement exportedLibrary = resynthesizerContext |
- .buildExportedLibrary(serializedExportPublic.uri); |
- if (exportedLibrary != null) { |
- UnlinkedExportNonPublic serializedExportNonPublic = |
- unlinkedNonPublicExports[i]; |
- ExportElementImpl exportElement = |
- new ExportElementImpl.forSerialized( |
- serializedExportPublic, serializedExportNonPublic, library); |
- exports.add(exportElement); |
- } |
+ UnlinkedExportNonPublic serializedExportNonPublic = |
+ unlinkedNonPublicExports[i]; |
+ ExportElementImpl exportElement = new ExportElementImpl.forSerialized( |
+ serializedExportPublic, serializedExportNonPublic, library); |
+ exports.add(exportElement); |
} |
_exports = exports; |
} else { |
@@ -5970,14 +5965,9 @@ class LibraryElementImpl extends ElementImpl implements LibraryElement { |
LinkedLibrary linkedLibrary = resynthesizerContext.linkedLibrary; |
for (int i = 0; i < length; i++) { |
int dependency = linkedLibrary.importDependencies[i]; |
- LibraryElement importedLibrary = |
- resynthesizerContext.buildImportedLibrary(dependency); |
- if (importedLibrary != null) { |
- ImportElementImpl importElement = |
- new ImportElementImpl.forSerialized( |
- unlinkedImports[i], dependency, library); |
- imports.add(importElement); |
- } |
+ ImportElementImpl importElement = new ImportElementImpl.forSerialized( |
+ unlinkedImports[i], dependency, library); |
+ imports.add(importElement); |
} |
_imports = imports; |
} else { |