refactor(compiler-cli): visit inputs and outputs for elements and templates (#42984)

This commit adds to the exisiting `RecursiveVisitor` and visits inputs
and outputs for elements and templates.

Refs #42966

PR Close #42984
This commit is contained in:
Daniel Trevino 2021-08-03 19:48:06 +00:00 committed by Andrew Kushnir
parent 29a5a90111
commit 9a0a2b6e75
1 changed files with 4 additions and 0 deletions

View File

@ -203,11 +203,15 @@ export class NullVisitor implements Visitor<void> {
export class RecursiveVisitor implements Visitor<void> {
visitElement(element: Element): void {
visitAll(this, element.attributes);
visitAll(this, element.inputs);
visitAll(this, element.outputs);
visitAll(this, element.children);
visitAll(this, element.references);
}
visitTemplate(template: Template): void {
visitAll(this, template.attributes);
visitAll(this, template.inputs);
visitAll(this, template.outputs);
visitAll(this, template.children);
visitAll(this, template.references);
visitAll(this, template.variables);