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

Unified Diff: pkg/front_end/test/fasta/testing/suite.dart

Issue 2977703002: Refactorings for TranslateUri and its tests. (Closed)
Patch Set: Replace `file` with just word 'file' in documentation. Created 3 years, 5 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/test/fasta/testing/suite.dart
diff --git a/pkg/front_end/test/fasta/testing/suite.dart b/pkg/front_end/test/fasta/testing/suite.dart
index 05fca37eecc0b1335e2feb5dcb86e30be9efeaa7..53ddb7a49cbecf7318a38eef16512ecc9ac055b0 100644
--- a/pkg/front_end/test/fasta/testing/suite.dart
+++ b/pkg/front_end/test/fasta/testing/suite.dart
@@ -234,12 +234,10 @@ class Outline extends Step<TestDescription, Program, FastaContext> {
new TestVmFastaTarget(new TargetFlags(strongMode: strongMode)));
platformOutline.unbindCanonicalNames();
dillTarget.loader.appendLibraries(platformOutline);
- // We create a new URI translator to avoid reading plaform libraries from
+ // We create a new URI translator to avoid reading platform libraries from
// file system.
- TranslateUri uriTranslator = new TranslateUri(
- context.uriTranslator.packages,
- const <String, Uri>{},
- const <String, List<Uri>>{});
+ TranslateUri uriTranslator = new TranslateUri(const <String, Uri>{},
+ const <String, List<Uri>>{}, context.uriTranslator.packages);
KernelTarget sourceTarget = astKind == AstKind.Analyzer
? new AnalyzerTarget(dillTarget, uriTranslator, strongMode)
: new KernelTarget(

Powered by Google App Engine
This is Rietveld 408576698