feat(dart/transform) Remove import of dart:mirrors

+ Precede the call to `new ReflectionCapabilities()` with our generated
code which populates the reflection map statically.
+ Add the import of our generated code.
+ Once we are generating all necessary code, we will remove the
import of reflection_capabilities.dart and the instantiation of
`ReflectionCapabilities`, cutting the dependency on dart:mirrors.

Closes #761
This commit is contained in:
Tim Blasi
2015-02-20 15:16:59 -08:00
committed by Misko Hevery
parent fad25c2b10
commit 3b6aaf9054
25 changed files with 339 additions and 187 deletions

View File

@ -11,9 +11,8 @@ dev_dependencies:
path: ../benchpress
transformers:
- angular2:
bootstrap_entry_point: web/src/hello_world/index_common.dart
entry_point: web/src/hello_world/index.dart
html_entry_point: web/src/hello_world/index.html
entry_point: web/src/hello_world/index_common.dart
reflection_entry_point: web/src/hello_world/index.dart
- $dart2js:
minify: true
commandLineOptions: [--trust-type-annotations, --trust-primitives, --dump-info]