From 9a0a2b6e758b90b59e1e880b955fe26aaed59b29 Mon Sep 17 00:00:00 2001 From: Daniel Trevino <23410540+danieltre23@users.noreply.github.com> Date: Tue, 3 Aug 2021 19:48:06 +0000 Subject: [PATCH] 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 --- packages/compiler/src/render3/r3_ast.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/compiler/src/render3/r3_ast.ts b/packages/compiler/src/render3/r3_ast.ts index dc7e452a11..0eb111b3c7 100644 --- a/packages/compiler/src/render3/r3_ast.ts +++ b/packages/compiler/src/render3/r3_ast.ts @@ -203,11 +203,15 @@ export class NullVisitor implements Visitor { export class RecursiveVisitor implements Visitor { 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);