|
Switch FE to use the libraries.json format.
This CL:
* introduces the Dart API to operate over libraries specifications and describes
the format we intend to use (see libraries_spec.dart)
* implements serialization/deserialization for this API
* switches over the front_end to use these APIs
* public options accept a URI to the JSON file and no longer
accept a `dartLibraries` map
* internal code uses the LibrariesSpecification API
* switches other dependencies on these APIs (resynthesizer_test and patch_sdk.dart)
This is the first step in migrating over to use the libraries.json format and
eventually remove the patched_sdk step. In particular, some of the next steps
include:
* add a build step to generate .json files from .yaml files
* add a libraries.yaml file for the sdk
* split the patched_sdk step in two:
* patching files
* generating .dill files
* add any missing support for patch-files in fasta
* finally remove the patching files step, and only have a build step for generating
.dill files
BUG=
R=ahe@google.com, paulberry@google.com, scheglov@google.com
Committed: https://github.com/dart-lang/sdk/commit/abf2d23af2315fae6dc688741147ef677ec34835
Committed: https://github.com/dart-lang/sdk/commit/b48584d3d0eb480943d72958104baf8e0e366074
Total comments: 52
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+871 lines, -211 lines) |
Patch |
|
M |
pkg/analyzer/test/src/summary/resynthesize_kernel_test.dart
|
View
|
1
2
|
2 chunks |
+8 lines, -4 lines |
0 comments
|
Download
|
|
M |
pkg/compiler/lib/src/library_loader.dart
|
View
|
1
2
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
M |
pkg/front_end/example/incremental_reload/compiler_with_invalidation.dart
|
View
|
|
3 chunks |
+0 lines, -14 lines |
0 comments
|
Download
|
|
M |
pkg/front_end/lib/compiler_options.dart
|
View
|
1
|
1 chunk |
+9 lines, -10 lines |
0 comments
|
Download
|
|
M |
pkg/front_end/lib/incremental_kernel_generator.dart
|
View
|
|
2 chunks |
+7 lines, -4 lines |
0 comments
|
Download
|
|
A |
pkg/front_end/lib/src/base/libraries_specification.dart
|
View
|
1
|
1 chunk |
+221 lines, -0 lines |
0 comments
|
Download
|
|
M |
pkg/front_end/lib/src/base/processed_options.dart
|
View
|
1
|
5 chunks |
+83 lines, -32 lines |
0 comments
|
Download
|
|
M |
pkg/front_end/lib/src/fasta/fasta_codes_generated.dart
|
View
|
1
|
2 chunks |
+51 lines, -0 lines |
0 comments
|
Download
|
|
M |
pkg/front_end/lib/src/fasta/uri_translator_impl.dart
|
View
|
1
|
3 chunks |
+10 lines, -70 lines |
0 comments
|
Download
|
|
M |
pkg/front_end/lib/src/testing/compiler_common.dart
|
View
|
1
|
2 chunks |
+19 lines, -7 lines |
0 comments
|
Download
|
|
M |
pkg/front_end/messages.yaml
|
View
|
1
|
2 chunks |
+7 lines, -0 lines |
0 comments
|
Download
|
|
M |
pkg/front_end/test/fasta/testing/suite.dart
|
View
|
1
|
3 chunks |
+8 lines, -4 lines |
0 comments
|
Download
|
|
M |
pkg/front_end/test/fasta/uri_translator_test.dart
|
View
|
1
|
3 chunks |
+10 lines, -10 lines |
0 comments
|
Download
|
|
M |
pkg/front_end/test/incremental_kernel_generator_test.dart
|
View
|
1
|
1 chunk |
+2 lines, -4 lines |
0 comments
|
Download
|
|
M |
pkg/front_end/test/kernel_generator_test.dart
|
View
|
1
|
2 chunks |
+5 lines, -4 lines |
0 comments
|
Download
|
|
A |
pkg/front_end/test/src/base/libraries_specification_test.dart
|
View
|
1
|
1 chunk |
+309 lines, -0 lines |
0 comments
|
Download
|
|
M |
pkg/front_end/test/src/base/processed_options_test.dart
|
View
|
1
|
3 chunks |
+57 lines, -2 lines |
0 comments
|
Download
|
|
M |
pkg/front_end/test/src/incremental/file_state_test.dart
|
View
|
|
1 chunk |
+2 lines, -4 lines |
0 comments
|
Download
|
|
M |
pkg/front_end/test/src/incremental/hot_reload_e2e_test.dart
|
View
|
|
1 chunk |
+1 line, -11 lines |
0 comments
|
Download
|
|
M |
pkg/front_end/test/src/incremental/kernel_driver_test.dart
|
View
|
|
1 chunk |
+2 lines, -3 lines |
0 comments
|
Download
|
|
M |
pkg/front_end/test/src/incremental/mock_sdk.dart
|
View
|
1
|
2 chunks |
+15 lines, -7 lines |
0 comments
|
Download
|
|
M |
pkg/front_end/test/subpackage_relationships_test.dart
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
pkg/front_end/tool/fasta_perf.dart
|
View
|
|
3 chunks |
+6 lines, -4 lines |
0 comments
|
Download
|
|
M |
tools/patch_sdk.dart
|
View
|
1
2
|
9 chunks |
+38 lines, -16 lines |
0 comments
|
Download
|
Total messages: 17 (8 generated)
|