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

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

Issue 2895983002: Read SDK and patches from a JSON file. (Closed)
Patch Set: 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..7b76ddaee92c6a82e173f45ce48a9d31aac09609 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
@@ -87,6 +87,8 @@ abstract class SourceLibraryBuilder<T extends TypeBuilder, R>
bool get isPart => partOfName != null || partOfUri != null;
+ bool get isPatch;
+
List<T> get types => libraryDeclaration.types;
T addNamedType(String name, List<T> arguments, int charOffset);
@@ -148,7 +150,7 @@ abstract class SourceLibraryBuilder<T extends TypeBuilder, R>
resolvedUri = uri.resolve(path);
newFileUri = fileUri.resolve(path);
}
- parts.add(loader.read(resolvedUri, newFileUri));
+ parts.add(loader.read(resolvedUri, fileUri: newFileUri));
}
void addPartOf(List<MetadataBuilder> metadata, String name, String uri) {

Powered by Google App Engine
This is Rietveld 408576698