|
Use URIs rather than paths in front end API.
This carries a number of benefits:
- It allows the front end to trivially support schemes other than
"file:" (e.g. "http:") by allowing the client to supply a FileSystem
implementation that handles them.
- It is more consistent with the functionality of the ".packages" file
(which allows packages to map to any kind of URI).
- It allows the "bazel root" feature to be rewritten to use a magic
scheme rather than a magic path. (This eliminates concerns about
the magic path overlapping with a user's use case). Note that this
feature has been renamed to "multi root" since it is sufficiently
generic to be applicable to build systems other than Bazel.
- It reduces the risk of forgetting to use the front end's FileSystem
abstraction to access the file system, since the native file system
interfaces do not accept URIs.
R=danrubel@google.com
Committed: https://github.com/dart-lang/sdk/commit/ba241c0c8d23b22717eb0de99dcbf1b53591a42d
Total comments: 5
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+248 lines, -245 lines) |
Patch |
|
M |
pkg/front_end/lib/compiler_options.dart
|
View
|
1
2
|
3 chunks |
+32 lines, -30 lines |
0 comments
|
Download
|
|
M |
pkg/front_end/lib/file_system.dart
|
View
|
1
2
|
2 chunks |
+9 lines, -16 lines |
0 comments
|
Download
|
|
M |
pkg/front_end/lib/kernel_generator.dart
|
View
|
1
2
|
4 chunks |
+15 lines, -5 lines |
0 comments
|
Download
|
|
M |
pkg/front_end/lib/memory_file_system.dart
|
View
|
1
2
3
|
4 chunks |
+23 lines, -20 lines |
0 comments
|
Download
|
|
M |
pkg/front_end/lib/physical_file_system.dart
|
View
|
|
1 chunk |
+15 lines, -13 lines |
2 comments
|
Download
|
|
M |
pkg/front_end/lib/src/base/processed_options.dart
|
View
|
1
2
3
|
3 chunks |
+8 lines, -10 lines |
0 comments
|
Download
|
|
M |
pkg/front_end/lib/src/base/uri_resolver.dart
|
View
|
1
2
|
3 chunks |
+27 lines, -34 lines |
0 comments
|
Download
|
|
M |
pkg/front_end/lib/src/dependency_grapher_impl.dart
|
View
|
1
2
3
|
1 chunk |
+4 lines, -3 lines |
0 comments
|
Download
|
|
M |
pkg/front_end/test/dependency_grapher_test.dart
|
View
|
1
2
|
1 chunk |
+5 lines, -3 lines |
0 comments
|
Download
|
|
M |
pkg/front_end/test/memory_file_system_test.dart
|
View
|
|
7 chunks |
+48 lines, -40 lines |
0 comments
|
Download
|
|
M |
pkg/front_end/test/physical_file_system_test.dart
|
View
|
|
5 chunks |
+26 lines, -48 lines |
0 comments
|
Download
|
|
M |
pkg/front_end/test/src/base/processed_options_test.dart
|
View
|
1
2
|
2 chunks |
+15 lines, -12 lines |
0 comments
|
Download
|
|
M |
pkg/front_end/test/src/base/uri_resolver_test.dart
|
View
|
1
2
|
4 chunks |
+11 lines, -4 lines |
0 comments
|
Download
|
|
M |
pkg/front_end/tool/example.dart
|
View
|
1
2
3
|
1 chunk |
+6 lines, -4 lines |
0 comments
|
Download
|
|
M |
pkg/front_end/tool/perf.dart
|
View
|
1
2
|
1 chunk |
+4 lines, -3 lines |
2 comments
|
Download
|
Total messages: 10 (3 generated)
|