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

Unified Diff: pkg/front_end/lib/src/fasta/dill/dill_library_builder.dart

Issue 3003993002: Fix issues from CL 3009573002. (Closed)
Patch Set: Update imports and expectations. Created 3 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/front_end/lib/src/fasta/kernel/kernel_target.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/dill/dill_library_builder.dart
diff --git a/pkg/front_end/lib/src/fasta/dill/dill_library_builder.dart b/pkg/front_end/lib/src/fasta/dill/dill_library_builder.dart
index e0baf8e7e9b70c0210eddcd9bd625a62639f6e1b..48bcb98b9f1cf622846ee2cc37ff69860621e3a9 100644
--- a/pkg/front_end/lib/src/fasta/dill/dill_library_builder.dart
+++ b/pkg/front_end/lib/src/fasta/dill/dill_library_builder.dart
@@ -147,21 +147,16 @@ class DillLibraryBuilder extends LibraryBuilder<KernelTypeBuilder, Library> {
void finalizeExports() {
if (additionalExports != null) {
for (List<String> additionalExport in additionalExports) {
- Uri originUri = Uri.parse(additionalExport[0]);
+ String uriString = additionalExport[0];
String name = additionalExport[1];
Builder builder;
- if (originUri == null) {
+ if (uriString == null) {
builder = new KernelInvalidTypeBuilder(name, -1, null,
templateUnspecified.withArguments(additionalExport[2]));
} else {
- DillLibraryBuilder library = loader.read(originUri, -1);
- builder = library.exportScopeBuilder[name];
- if (library != null) {
- builder = library.exportScopeBuilder[name];
- }
- if (builder == null) {
- builder = new KernelInvalidTypeBuilder(name, -1, null);
- }
+ DillLibraryBuilder library = loader.read(uri.resolve(uriString), -1);
+ builder = library?.exportScopeBuilder[name] ??
+ new KernelInvalidTypeBuilder(name, -1, null);
}
exportScopeBuilder.addMember(name, builder);
}
« no previous file with comments | « no previous file | pkg/front_end/lib/src/fasta/kernel/kernel_target.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698