Index: pkg/analyzer/test/src/summary/resynthesize_kernel_test.dart |
diff --git a/pkg/analyzer/test/src/summary/resynthesize_kernel_test.dart b/pkg/analyzer/test/src/summary/resynthesize_kernel_test.dart |
index cb43e6d3e376c40fea32b2c0d06f204a074380b8..e7ec0cebf272f569fade9b4ae35a4c0369293461 100644 |
--- a/pkg/analyzer/test/src/summary/resynthesize_kernel_test.dart |
+++ b/pkg/analyzer/test/src/summary/resynthesize_kernel_test.dart |
@@ -15,6 +15,7 @@ import 'package:analyzer/src/summary/resynthesize.dart'; |
import 'package:front_end/compiler_options.dart'; |
import 'package:front_end/file_system.dart'; |
import 'package:front_end/src/base/performace_logger.dart'; |
+import 'package:front_end/src/base/libraries_specification.dart'; |
import 'package:front_end/src/base/processed_options.dart'; |
import 'package:front_end/src/fasta/uri_translator_impl.dart'; |
import 'package:front_end/src/incremental/byte_store.dart'; |
@@ -74,13 +75,16 @@ class ResynthesizeKernelStrongTest extends ResynthesizeTest { |
Uri testUri = testFile.toUri(); |
String testUriStr = testUri.toString(); |
- Map<String, Uri> dartLibraries = {}; |
+ Map<String, LibraryInfo> dartLibraries = {}; |
MockSdk.FULL_URI_MAP.forEach((dartUri, path) { |
- dartLibraries[Uri.parse(dartUri).path] = Uri.parse('file://$path'); |
+ var name = Uri.parse(dartUri).path; |
+ dartLibraries[name] = |
+ new LibraryInfo(name, Uri.parse('file://$path'), const []); |
}); |
- var uriTranslator = |
- new UriTranslatorImpl(dartLibraries, {}, Packages.noPackages); |
+ var uriTranslator = new UriTranslatorImpl( |
+ new TargetLibrariesSpecification('none', dartLibraries), |
+ Packages.noPackages); |
var options = new ProcessedOptions(new CompilerOptions() |
..target = new NoneTarget(new TargetFlags(strongMode: isStrongMode)) |
..reportMessages = false |