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

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

Issue 2088233003: Serialize erroneous element and more (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Updated cf. comments. Created 4 years, 6 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/serialization/element_serialization.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/library_loader.dart
diff --git a/pkg/compiler/lib/src/library_loader.dart b/pkg/compiler/lib/src/library_loader.dart
index 9da31d6188cc9103c690665e835a67a71f0c22f1..be0cb41499551e76dde6f66fecb715fbc4dac788 100644
--- a/pkg/compiler/lib/src/library_loader.dart
+++ b/pkg/compiler/lib/src/library_loader.dart
@@ -649,10 +649,16 @@ class _LibraryLoaderTask extends CompilerTask implements LibraryLoaderTask {
handler.registerNewLibrary(library);
return listener.onLibraryScanned(library, handler).then((_) {
return Future.forEach(library.imports, (ImportElement import) {
- return createLibrary(handler, library, import.uri);
+ Uri resolvedUri = library.canonicalUri.resolveUri(import.uri);
+ return createLibrary(handler, library, resolvedUri);
}).then((_) {
return Future.forEach(library.exports, (ExportElement export) {
- return createLibrary(handler, library, export.uri);
+ Uri resolvedUri = library.canonicalUri.resolveUri(export.uri);
+ return createLibrary(handler, library, resolvedUri);
+ }).then((_) {
+ // TODO(johnniwinther): Shouldn't there be an [ImportElement] for the
+ // implicit import of dart:core?
+ return createLibrary(handler, library, Uris.dart_core);
}).then((_) => library);
});
});
« no previous file with comments | « no previous file | pkg/compiler/lib/src/serialization/element_serialization.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698