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

Unified Diff: pkg/front_end/lib/compiler_options.dart

Issue 2986303003: Switch FE to use the libraries.json format. (Closed)
Patch Set: fix issues found on bots 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 d20aa834fb8e1b727d9165ad2a3ba2dab69dadb1..28993863c5f423d0216a84f8a52a888237eca1af 100644
--- a/pkg/front_end/lib/compiler_options.dart
+++ b/pkg/front_end/lib/compiler_options.dart
@@ -25,18 +25,17 @@ class CompilerOptions {
/// [Platform.resolvedExecutable] as a starting point.
Uri sdkRoot;
- /// Map of `dart:*` libraries to URIs in the [fileSystem].
+ /// Uri to a platform libraries specification file.
///
- /// Keys in the map are the name of the library with no `dart:` prefix, for
- /// example:
- ///
- /// {'core': 'file:///sdk/lib/core/core.dart'}
+ /// 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.
///
- /// 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;
+ /// 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;
/// Callback to which compilation errors should be delivered.
///

Powered by Google App Engine
This is Rietveld 408576698