Index: pkg/analyzer/lib/src/generated/resolver.dart |
diff --git a/pkg/analyzer/lib/src/generated/resolver.dart b/pkg/analyzer/lib/src/generated/resolver.dart |
index ccfa988cb5533de362480dc8fe7e2e8e53811427..720c8f44d1354974821ede9e353c1e2adec09e44 100644 |
--- a/pkg/analyzer/lib/src/generated/resolver.dart |
+++ b/pkg/analyzer/lib/src/generated/resolver.dart |
@@ -2104,7 +2104,7 @@ class DeadCodeVerifier extends RecursiveAstVisitor<Object> { |
LibraryElement library = exportElement.exportedLibrary; |
if (library != null && !library.isSynthetic) { |
for (Combinator combinator in node.combinators) { |
- _checkCombinator(exportElement.exportedLibrary, combinator); |
+ _checkCombinator(library, combinator); |
} |
} |
} |
@@ -4082,7 +4082,7 @@ class ImportsVerifier { |
*/ |
void _addAdditionalLibrariesForExports(LibraryElement library, |
ImportDirective importDirective, Set<LibraryElement> visitedLibraries) { |
- if (!visitedLibraries.add(library)) { |
+ if (library == null || !visitedLibraries.add(library)) { |
return; |
} |
List<ExportElement> exports = library.exports; |