Descriptiondart2js: add simple script to compute dependency queries. Currently only
one query is supported "some_path", which gives you a way to determine how a
function is included in the program. For example, running:
dart code_deps.dart angular2_hello.js.info.json some_path main Compiler
would produce this output:
source: examples.src.hello_world.index...main
target: angular2.src.core.compiler.compiler...Compiler.Compiler
result:
0. examples.src.hello_world.index...main
1. examples.src.gestures.index.ng_deps.dart...initReflector
2. angular2.bootstrap_static.ng_deps.dart...initReflector
3. angular2.application_static.ng_deps.dart...initReflector
4. angular2.src.core.application_common.ng_deps.dart...initReflector
5. angular2.src.core.compiler.compiler.ng_deps.dart...initReflector
6. angular2.src.core.compiler.compiler...Compiler.Compiler
The tool accepts regular expressions to match the name of the elements.
The graph and util library will be used for other scripts as well.
R=het@google.com
Committed: https://github.com/dart-lang/sdk/commit/f95dd37d1a4845359c0df3d6820d8299619783d4
Patch Set 1 : #Patch Set 2 : #
Total comments: 14
Patch Set 3 : #
Total comments: 8
Messages
Total messages: 11 (4 generated)
|