feat(dart/transform): Allow multiple transformer entry points

- Allow the user to specify multiple entry points to an app.
- Allow the Angular 2 transformer to run without explicit entry points to
generate necessary setters & getters on built-in directives like `For`
and `If`.

Closes #1246
This commit is contained in:
Tim Blasi
2015-04-09 17:49:11 -07:00
parent bba849909c
commit 2cab7c79c3
12 changed files with 120 additions and 74 deletions

View File

@ -11,8 +11,8 @@ import '../common/read_file.dart';
var formatter = new DartFormatter();
var transform = new AngularTransformerGroup(new TransformerOptions(
'web/index.dart',
reflectionEntryPoint: 'web/index.dart', modeName: TRANSFORM_MODE));
['web/index.dart'],
reflectionEntryPoints: ['web/index.dart'], modeName: TRANSFORM_MODE));
class IntegrationTestConfig {
final String name;

View File

@ -3,12 +3,10 @@ library web_foo.ng_deps.dart;
import 'index.dart';
import 'package:angular2/src/core/application.dart';
import 'package:angular2/src/reflection/reflection.dart';
import 'package:angular2/src/reflection/reflection_capabilities.dart';
import 'index.ng_deps.dart' as ngStaticInit0;
import 'bar.dart';
import 'bar.ng_deps.dart' as i0;
import 'package:angular2/src/core/application.ng_deps.dart' as i1;
import 'package:angular2/src/reflection/reflection_capabilities.ng_deps.dart'
as i2;
bool _visited = false;
void initReflector(reflector) {
@ -16,5 +14,4 @@ void initReflector(reflector) {
_visited = true;
i0.initReflector(reflector);
i1.initReflector(reflector);
i2.initReflector(reflector);
}