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

Unified Diff: pkg/kernel/lib/import_table.dart

Issue 3009953003: Store actual Reference(s) for additional exports. (Closed)
Patch Set: Use references, but keep JSON hacks for errors and void/dynamic. Created 3 years, 3 months 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/kernel/lib/import_table.dart
diff --git a/pkg/kernel/lib/import_table.dart b/pkg/kernel/lib/import_table.dart
index 89c2998256d7015891c7e6167ba8a756b0d14334..c892e5ee5df7314ffba0a965867ca0d32ce85d48 100644
--- a/pkg/kernel/lib/import_table.dart
+++ b/pkg/kernel/lib/import_table.dart
@@ -102,6 +102,13 @@ class _ImportTableBuilder extends RecursiveVisitor {
addLibraryImport(node.enclosingLibrary);
}
+ visitLibrary(Library node) {
+ super.visitLibrary(node);
+ for (Reference exportedReference in node.additionalExports) {
+ addLibraryImport(exportedReference.node.parent);
+ }
+ }
+
defaultMemberReference(Member node) {
addLibraryImport(node.enclosingLibrary);
}

Powered by Google App Engine
This is Rietveld 408576698