feat(dart/transform): Generate setter stubs.

Generate calls to Reflector#registerSetters from the information in
provided `Directive#bind` values.

This is only an initial attempt - it covers only the most basic values
of `bind`.

Closes #780
This commit is contained in:
Tim Blasi
2015-02-23 17:38:34 -08:00
committed by Misko Hevery
parent 1376e49ea0
commit 50a74b1d91
6 changed files with 276 additions and 117 deletions

View File

@ -118,16 +118,13 @@ class _BootstrapFileBuilder {
var types = new Angular2Types(_resolver);
// TODO(kegluneq): Also match [Inject].
var matcher = new AnnotationMatcher(new Set.from([
types.componentAnnotation,
types.decoratorAnnotation,
types.templateAnnotation
]));
var matcher = new AnnotationMatcher(
new Set.from([types.directiveAnnotation, types.templateAnnotation]));
var traversal = new AngularVisibleTraversal(types, matcher);
bootstrapCalls.forEach((call) => traversal.traverse(call.bootstrapType));
var context = new codegen.Context(logger: _transform.logger);
var context = new codegen.Context();
matcher.matchQueue
.forEach((entry) => context.directiveRegistry.register(entry));