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

Function visitAll

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

Source from the content-addressed store, hash-verified

862}
863
864export function visitAll<Result>(visitor: Visitor<Result>, nodes: Node[]): Result[] {
865 const result: Result[] = [];
866 if (visitor.visit) {
867 for (const node of nodes) {
868 visitor.visit(node);
869 }
870 } else {
871 for (const node of nodes) {
872 const newNode = node.visit(visitor);
873 if (newNode) {
874 result.push(newNode);
875 }
876 }
877 }
878 return result;
879}

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