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

Unified Diff: pkg/front_end/lib/src/fasta/compile_platform.dart

Issue 2865843002: Use FileSystem to read files in SourceLoader and TranslateUri. (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/compile_platform.dart
diff --git a/pkg/front_end/lib/src/fasta/compile_platform.dart b/pkg/front_end/lib/src/fasta/compile_platform.dart
index 9be271f72e20219d286bf9409599018cc0da22db..878970adaf0e48c5d7195b0e55b7a2ff45c1cebd 100644
--- a/pkg/front_end/lib/src/fasta/compile_platform.dart
+++ b/pkg/front_end/lib/src/fasta/compile_platform.dart
@@ -62,12 +62,12 @@ Future compilePlatformInternal(
}
TranslateUri uriTranslator =
- await TranslateUri.parse(patchedSdk, c.options.packages);
+ await TranslateUri.parse(c.fileSystem, patchedSdk, c.options.packages);
ticker.logMs("Read packages file");
DillTarget dillTarget = new DillTarget(ticker, uriTranslator);
- KernelTarget kernelTarget = new KernelTarget(
- dillTarget, uriTranslator, c.options.strongMode, c.uriToSource);
+ KernelTarget kernelTarget = new KernelTarget(c.fileSystem, dillTarget,
+ uriTranslator, c.options.strongMode, c.uriToSource);
kernelTarget.read(Uri.parse("dart:core"));
await dillTarget.writeOutline(null);

Powered by Google App Engine
This is Rietveld 408576698