MCPcopy Create free account
hub / github.com/angular/angular / visitAll

Function visitAll

packages/compiler/src/render3/r3_ast.ts:874–889  ·  view source on GitHub ↗
(visitor: Visitor<Result>, nodes: Node[])

Source from the content-addressed store, hash-verified

872}
873
874export function visitAll<Result>(visitor: Visitor<Result>, nodes: Node[]): Result[] {
875 const result: Result[] = [];
876 if (visitor.visit) {
877 for (const node of nodes) {
878 visitor.visit(node);
879 }
880 } else {
881 for (const node of nodes) {
882 const newNode = node.visit(visitor);
883 if (newNode) {
884 result.push(newNode);
885 }
886 }
887 }
888 return result;
889}

Callers 15

visitAllMethod · 0.70
visitTriggersMethod · 0.70
visitElementMethod · 0.70
visitTemplateMethod · 0.70
visitSwitchBlockMethod · 0.70
visitForLoopBlockMethod · 0.70

Calls 2

visitMethod · 0.65
pushMethod · 0.45

Tested by

no test coverage detected