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

Unified Diff: pkg/front_end/lib/src/fasta/source/source_library_builder.dart

Issue 2682103002: Correctly resolve package parts. (Closed)
Patch Set: Created 3 years, 10 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/front_end/lib/src/fasta/translate_uri.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/front_end/lib/src/fasta/source/source_library_builder.dart
diff --git a/pkg/front_end/lib/src/fasta/source/source_library_builder.dart b/pkg/front_end/lib/src/fasta/source/source_library_builder.dart
index 934b98092526ce2a7b811d3fbff0ea7dd465f94b..1af020ca3a217fdd8fac118726829e447fd735da 100644
--- a/pkg/front_end/lib/src/fasta/source/source_library_builder.dart
+++ b/pkg/front_end/lib/src/fasta/source/source_library_builder.dart
@@ -131,7 +131,8 @@ abstract class SourceLibraryBuilder<T extends TypeBuilder, R>
resolvedUri = new Uri(scheme: "dart", path: "${uri.path}/$path");
newFileUri = fileUri.resolve(path);
} else {
- newFileUri = resolvedUri = resolve(path);
+ resolvedUri = uri.resolve(path);
+ newFileUri = fileUri.resolve(path);
}
parts.add(loader.read(resolvedUri, newFileUri));
}
« no previous file with comments | « no previous file | pkg/front_end/lib/src/fasta/translate_uri.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698