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:
parent
29a5a90111
commit
9a0a2b6e75
|
@ -203,11 +203,15 @@ export class NullVisitor implements Visitor<void> {
|
||||||
export class RecursiveVisitor implements Visitor<void> {
|
export class RecursiveVisitor implements Visitor<void> {
|
||||||
visitElement(element: Element): void {
|
visitElement(element: Element): void {
|
||||||
visitAll(this, element.attributes);
|
visitAll(this, element.attributes);
|
||||||
|
visitAll(this, element.inputs);
|
||||||
|
visitAll(this, element.outputs);
|
||||||
visitAll(this, element.children);
|
visitAll(this, element.children);
|
||||||
visitAll(this, element.references);
|
visitAll(this, element.references);
|
||||||
}
|
}
|
||||||
visitTemplate(template: Template): void {
|
visitTemplate(template: Template): void {
|
||||||
visitAll(this, template.attributes);
|
visitAll(this, template.attributes);
|
||||||
|
visitAll(this, template.inputs);
|
||||||
|
visitAll(this, template.outputs);
|
||||||
visitAll(this, template.children);
|
visitAll(this, template.children);
|
||||||
visitAll(this, template.references);
|
visitAll(this, template.references);
|
||||||
visitAll(this, template.variables);
|
visitAll(this, template.variables);
|
||||||
|
|
Loading…
Reference in New Issue