dart-sdk/pkg/kernel/lib
Asger Feldthaus 709c1e0b75 Store library paths relative to a given application root folder.
In kernel, library import URIs now support an "app" scheme as an
alternative to the "file" scheme, representing a path relative to
the application root.

dartk takes an --app-root flag giving the application root. If none
is given, file URIs are used instead.

The intention is that kernel binaries should not carry irrelevant
path information, such as the path to the home directory of the
user who compiled a given file.

It is not the intention that end-users should see an app URI.
Import paths are currently not shown to users at all, and if we need
to do this, they should be translated to file paths first.

In theory we could stick to file URIs with relative paths, but the Uri
class from dart:core makes this difficult, as certain operations on it
assume that file paths should be absolute.

Source mapping URIs are not yet affected by this change.

R=kmillikin@google.com

Committed: 60adb852ad

Review URL: https://codereview.chromium.org/2532053005 .

Reverted: bb540416f2
2016-11-30 10:39:48 +01:00
..
analyzer Store library paths relative to a given application root folder. 2016-11-30 10:39:48 +01:00
binary [kernel] Store named parameters in sorted lists instead of using maps. 2016-11-16 15:16:24 +01:00
frontend dart2js-kernel: Implement Let and PropertySet. 2016-11-26 12:42:37 -08:00
target Remove dart:mojo.internal library in FlutterTarget 2016-11-29 14:41:40 +01:00
text Add --verify-ir flag to dartk and test.py. 2016-11-28 12:21:19 +01:00
transformations Check that invocations have well-formed targets in kernel verifier. 2016-11-30 08:24:03 +01:00
type_propagation [kernel] Store named parameters in sorted lists instead of using maps. 2016-11-16 15:16:24 +01:00
application_root.dart Store library paths relative to a given application root folder. 2016-11-30 10:39:48 +01:00
ast.dart Store library paths relative to a given application root folder. 2016-11-30 10:39:48 +01:00
class_hierarchy.dart [kernel] Introduce Substitution class and Supertype class. 2016-10-24 16:21:52 +02:00
clone.dart [kernel] Ensure the substitution map in the CloneVisitor is mutable. 2016-11-04 10:44:37 +01:00
core_types.dart [kernel] Refactor frontend to allow modular compilation. 2016-10-04 13:30:46 +02:00
import_table.dart [kernel] Remove NormalClass, MixinClass and use just Class. 2016-08-22 12:35:18 +02:00
kernel.dart [kernel] Refactor frontend to allow modular compilation. 2016-10-04 13:30:46 +02:00
log.dart [kernel] Initial implementation of Dart Kernel. 2016-04-26 10:39:15 +02:00
repository.dart Store library paths relative to a given application root folder. 2016-11-30 10:39:48 +01:00
type_algebra.dart [kernel] Fix some issues after introducing NamedType. 2016-11-16 17:09:48 +01:00
type_checker.dart [kernel] Fix some issues after introducing NamedType. 2016-11-16 17:09:48 +01:00
type_environment.dart [kernel] Store named parameters in sorted lists instead of using maps. 2016-11-16 15:16:24 +01:00
verifier.dart Check that invocations have well-formed targets in kernel verifier. 2016-11-30 08:24:03 +01:00
visitor.dart [kernel] Store named parameters in sorted lists instead of using maps. 2016-11-16 15:16:24 +01:00