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: Updated cf. comments. 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 | pkg/compiler/lib/src/resolution/constructors.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..20e2e7b6d0153e7405fe4a2dcabcb474383fc9bc 100644
--- a/pkg/compiler/lib/src/compiler.dart
+++ b/pkg/compiler/lib/src/compiler.dart
@@ -904,7 +904,19 @@ abstract class Compiler implements LibraryLoaderListener {
world.addToWorkList(loadLibrary);
}
}
+ if (serialization.supportSerialization) {
+ for (MetadataAnnotation metadata in import.metadata) {
+ metadata.ensureResolved(resolution);
+ }
+ }
});
+ if (serialization.supportSerialization) {
+ library.exports.forEach((ExportElement export) {
+ for (MetadataAnnotation metadata in export.metadata) {
+ metadata.ensureResolved(resolution);
+ }
+ });
+ }
}
void fullyEnqueueTopLevelElement(Element element, Enqueuer world) {
« no previous file with comments | « no previous file | pkg/compiler/lib/src/resolution/constructors.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698