| 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 c083aaf3820c6115ed2a4b9047d6583e10333154..d8d4147c081260844cff1e7971d473e0f80c36bf 100644
|
| --- a/pkg/front_end/tool/fasta_perf.dart
|
| +++ b/pkg/front_end/tool/fasta_perf.dart
|
| @@ -10,7 +10,7 @@ import 'dart:io';
|
|
|
| import 'package:analyzer/src/fasta/ast_builder.dart';
|
| import 'package:front_end/front_end.dart';
|
| -import 'package:front_end/src/base/processed_options.dart';
|
| +import 'package:front_end/physical_file_system.dart';
|
| 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;
|
| @@ -18,6 +18,7 @@ import 'package:front_end/src/fasta/source/directive_listener.dart';
|
| 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;
|
| @@ -79,11 +80,8 @@ UriTranslator uriResolver;
|
| /// Preliminary set up to be able to correctly resolve URIs on the given
|
| /// program.
|
| Future setup(Uri entryUri) async {
|
| - var options = new CompilerOptions()
|
| - ..sdkRoot = sdkRoot
|
| - ..compileSdk = true
|
| - ..packagesFileUri = Uri.base.resolve('.packages');
|
| - uriResolver = await new ProcessedOptions(options).getUriTranslator();
|
| + uriResolver =
|
| + await UriTranslatorImpl.parse(PhysicalFileSystem.instance, sdkRoot);
|
| }
|
|
|
| /// Scan [contents] and return the first token produced by the scanner.
|
|
|