MCPcopy Index your code
hub / github.com/angular/angular / visitAll

Function visitAll

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

Source from the content-addressed store, hash-verified

849}
850
851export function visitAll<Result>(visitor: Visitor<Result>, nodes: Node[]): Result[] {
852 const result: Result[] = [];
853 if (visitor.visit) {
854 for (const node of nodes) {
855 visitor.visit(node);
856 }
857 } else {
858 for (const node of nodes) {
859 const newNode = node.visit(visitor);
860 if (newNode) {
861 result.push(newNode);
862 }
863 }
864 }
865 return result;
866}

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

Used in the wild real call sites across dependent graphs

searching dependent graphs…