Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1952)

Unified Diff: pkg/analyzer/lib/src/summary/resynthesize.dart

Issue 2556253004: Set empty namespaces for public/exportNamespace of synthetic libraries. (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: pkg/analyzer/lib/src/summary/resynthesize.dart
diff --git a/pkg/analyzer/lib/src/summary/resynthesize.dart b/pkg/analyzer/lib/src/summary/resynthesize.dart
index 88dfc680dfb7f27066b0ac34866ad4b7e5645c16..2b7fe82f4c84c0f8ab0bea395f7f8f6e31d4d8ab 100644
--- a/pkg/analyzer/lib/src/summary/resynthesize.dart
+++ b/pkg/analyzer/lib/src/summary/resynthesize.dart
@@ -219,6 +219,8 @@ abstract class SummaryResynthesizer extends ElementResynthesizer {
unitElement.source = librarySource;
unitElement.librarySource = librarySource;
libraryElement.createLoadLibraryFunction(typeProvider);
+ libraryElement.publicNamespace = new Namespace({});
+ libraryElement.exportNamespace = new Namespace({});
return libraryElement;
}
UnlinkedUnit unlinkedSummary = _getUnlinkedSummaryOrNull(uri);

Powered by Google App Engine
This is Rietveld 408576698