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:
@ -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));
|
||||
|
||||
|
Reference in New Issue
Block a user