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

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

Issue 2256223002: Ensure resolution of metadata on parts 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 189c7d0db64b2e6016740093f1cc643d770940cb..3c9fc1c54ac4d3da937c5bf8650ac782a642dd48 100644
--- a/pkg/compiler/lib/src/compiler.dart
+++ b/pkg/compiler/lib/src/compiler.dart
@@ -913,6 +913,11 @@ abstract class Compiler implements LibraryLoaderListener {
metadata.ensureResolved(resolution);
}
});
+ library.compilationUnits.forEach((CompilationUnitElement unit) {
Siggi Cherem (dart-lang) 2016/08/18 15:30:58 same here - guard to only do this when serializati
Johnni Winther 2016/08/19 08:57:17 Done.
+ for (MetadataAnnotation metadata in unit.metadata) {
+ metadata.ensureResolved(resolution);
+ }
+ });
}
void fullyEnqueueTopLevelElement(Element element, Enqueuer world) {
« 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