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

Unified Diff: pkg/front_end/tool/fasta_perf.dart

Issue 2982593002: Rename TranslateUri to UriTranslator, rename files, extract Impl. (Closed)
Patch Set: 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/tool/fasta_perf.dart
diff --git a/pkg/front_end/tool/fasta_perf.dart b/pkg/front_end/tool/fasta_perf.dart
index d105768f015edaf4686bd8051ba077bbb6be41d6..d84834a95c186db02d3e91939c846bdb48d674e1 100644
--- a/pkg/front_end/tool/fasta_perf.dart
+++ b/pkg/front_end/tool/fasta_perf.dart
@@ -15,9 +15,10 @@ import 'package:front_end/src/fasta/parser.dart';
import 'package:front_end/src/fasta/scanner.dart';
import 'package:front_end/src/fasta/scanner/io.dart' show readBytesFromFileSync;
import 'package:front_end/src/fasta/source/directive_listener.dart';
-import 'package:front_end/src/fasta/translate_uri.dart' show TranslateUri;
+import 'package:front_end/src/fasta/uri_translator.dart' show UriTranslator;
import 'package:front_end/src/fasta/parser/native_support.dart'
show skipNativeClause;
+import 'package:front_end/src/fasta/uri_translator_impl.dart';
/// Cumulative total number of chars scanned.
int inputSize = 0;
@@ -74,12 +75,13 @@ Uri sdkRoot =
Uri.base.resolve(Platform.resolvedExecutable).resolve('patched_sdk/');
/// Translates `dart:*` and `package:*` URIs to resolved URIs.
-TranslateUri uriResolver;
+UriTranslator uriResolver;
/// Preliminary set up to be able to correctly resolve URIs on the given
/// program.
Future setup(Uri entryUri) async {
- uriResolver = await TranslateUri.parse(PhysicalFileSystem.instance, sdkRoot);
+ uriResolver =
+ await UriTranslatorImpl.parse(PhysicalFileSystem.instance, sdkRoot);
}
/// Scan [contents] and return the first token produced by the scanner.

Powered by Google App Engine
This is Rietveld 408576698