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

Unified Diff: pkg/front_end/lib/compiler_options.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
Index: pkg/front_end/lib/compiler_options.dart
diff --git a/pkg/front_end/lib/compiler_options.dart b/pkg/front_end/lib/compiler_options.dart
index 28993863c5f423d0216a84f8a52a888237eca1af..d20aa834fb8e1b727d9165ad2a3ba2dab69dadb1 100644
--- a/pkg/front_end/lib/compiler_options.dart
+++ b/pkg/front_end/lib/compiler_options.dart
@@ -25,17 +25,18 @@ class CompilerOptions {
/// [Platform.resolvedExecutable] as a starting point.
Uri sdkRoot;
- /// Uri to a platform libraries specification file.
+ /// Map of `dart:*` libraries to URIs in the [fileSystem].
///
- /// A libraries specification file is a JSON file that describes how to map
- /// `dart:*` libraries to URIs in the underlying [fileSystem]. See
- /// `package:front_end/src/base/libraries_specification.dart` for details on
- /// the format.
+ /// Keys in the map are the name of the library with no `dart:` prefix, for
+ /// example:
+ ///
+ /// {'core': 'file:///sdk/lib/core/core.dart'}
///
- /// If a value is not specified and `compileSdk = true`, the compiler will
- /// infer at a default location under [sdkRoot], typically under
- /// `lib/libraries.json`.
- Uri librariesSpecificationUri;
+ /// If `null`, the default set of libraries will be loaded from
+ /// `sdkRoot/lib/libraries.json`.
+ // TODO(sigmund): also provide an option to specify the .json file, then
+ // consider dropping this option.
+ Map<String, Uri> dartLibraries;
/// Callback to which compilation errors should be delivered.
///

Powered by Google App Engine
This is Rietveld 408576698