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

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

Issue 2898183002: Prepare for development branch by updating externally-used API. (Closed)
Patch Set: Minor tweaks found during testing. Created 3 years, 7 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
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 8786b0270e032961f4f1cd5a92832e321dd20d82..ed7f26b85d0d9ca0add68be9e15a7eb47d022f45 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
@@ -122,7 +122,9 @@ abstract class SourceLibraryBuilder<T extends TypeBuilder, R>
void addExport(List<MetadataBuilder> metadata, String uri,
Unhandled conditionalUris, List<Combinator> combinators, int charOffset) {
- loader.read(resolve(uri)).addExporter(this, combinators, charOffset);
+ loader
+ .read(resolve(uri), charOffset, accessor: this)
+ .addExporter(this, combinators, charOffset);
}
void addImport(
@@ -134,8 +136,14 @@ abstract class SourceLibraryBuilder<T extends TypeBuilder, R>
bool deferred,
int charOffset,
int prefixCharOffset) {
- imports.add(new Import(this, loader.read(resolve(uri)), deferred, prefix,
- combinators, charOffset, prefixCharOffset));
+ imports.add(new Import(
+ this,
+ loader.read(resolve(uri), charOffset, accessor: this),
+ deferred,
+ prefix,
+ combinators,
+ charOffset,
+ prefixCharOffset));
}
void addPart(List<MetadataBuilder> metadata, String path) {
@@ -146,9 +154,12 @@ abstract class SourceLibraryBuilder<T extends TypeBuilder, R>
newFileUri = fileUri.resolve(path);
} else {
resolvedUri = uri.resolve(path);
+
+ // TODO(ahe): This is wrong for package URIs.
newFileUri = fileUri.resolve(path);
}
- parts.add(loader.read(resolvedUri, newFileUri));
+ parts
+ .add(loader.read(resolvedUri, -1, fileUri: newFileUri, accessor: this));
}
void addPartOf(List<MetadataBuilder> metadata, String name, String uri) {
« no previous file with comments | « pkg/front_end/lib/src/fasta/source/outline_builder.dart ('k') | pkg/front_end/lib/src/fasta/source/stack_listener.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698