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

Unified Diff: pkg/analyzer/test/src/summary/resynthesize_kernel_test.dart

Issue 2993113003: Revert "Switch FE to use the libraries.json format." (Closed)
Patch Set: Created 3 years, 4 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
« no previous file with comments | « no previous file | pkg/front_end/example/incremental_reload/compiler_with_invalidation.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 e7ec0cebf272f569fade9b4ae35a4c0369293461..cb43e6d3e376c40fea32b2c0d06f204a074380b8 100644
--- a/pkg/analyzer/test/src/summary/resynthesize_kernel_test.dart
+++ b/pkg/analyzer/test/src/summary/resynthesize_kernel_test.dart
@@ -15,7 +15,6 @@ 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';
@@ -75,16 +74,13 @@ class ResynthesizeKernelStrongTest extends ResynthesizeTest {
Uri testUri = testFile.toUri();
String testUriStr = testUri.toString();
- Map<String, LibraryInfo> dartLibraries = {};
+ Map<String, Uri> dartLibraries = {};
MockSdk.FULL_URI_MAP.forEach((dartUri, path) {
- var name = Uri.parse(dartUri).path;
- dartLibraries[name] =
- new LibraryInfo(name, Uri.parse('file://$path'), const []);
+ dartLibraries[Uri.parse(dartUri).path] = Uri.parse('file://$path');
});
- var uriTranslator = new UriTranslatorImpl(
- new TargetLibrariesSpecification('none', dartLibraries),
- Packages.noPackages);
+ var uriTranslator =
+ new UriTranslatorImpl(dartLibraries, {}, Packages.noPackages);
var options = new ProcessedOptions(new CompilerOptions()
..target = new NoneTarget(new TargetFlags(strongMode: isStrongMode))
..reportMessages = false
« no previous file with comments | « no previous file | pkg/front_end/example/incremental_reload/compiler_with_invalidation.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698