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

Unified Diff: pkg/compiler/lib/src/compiler.dart

Issue 2256203002: Ensure metadata on imports/exports is resolved for serialization. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 4 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
« no previous file with comments | « no previous file | tests/compiler/dart2js/serialization/test_data.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/compiler.dart
diff --git a/pkg/compiler/lib/src/compiler.dart b/pkg/compiler/lib/src/compiler.dart
index cf4e21525616fef7efa12a76c5696ab39252ac36..189c7d0db64b2e6016740093f1cc643d770940cb 100644
--- a/pkg/compiler/lib/src/compiler.dart
+++ b/pkg/compiler/lib/src/compiler.dart
@@ -904,6 +904,14 @@ abstract class Compiler implements LibraryLoaderListener {
world.addToWorkList(loadLibrary);
}
}
+ for (MetadataAnnotation metadata in import.metadata) {
Siggi Cherem (dart-lang) 2016/08/18 15:28:17 how about only doing this if serialization is turn
Johnni Winther 2016/08/19 08:16:53 Done.
+ metadata.ensureResolved(resolution);
+ }
+ });
+ library.exports.forEach((ExportElement export) {
+ for (MetadataAnnotation metadata in export.metadata) {
+ metadata.ensureResolved(resolution);
+ }
});
}
« no previous file with comments | « no previous file | tests/compiler/dart2js/serialization/test_data.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698