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

Function visitAllWithSiblings

packages/compiler/src/ml_parser/html_whitespaces.ts:345–356  ·  view source on GitHub ↗
(visitor: WhitespaceVisitor, nodes: html.Node[])

Source from the content-addressed store, hash-verified

343}
344
345export function visitAllWithSiblings(visitor: WhitespaceVisitor, nodes: html.Node[]): any[] {
346 const result: any[] = [];
347
348 nodes.forEach((ast, i) => {
349 const context: SiblingVisitorContext = {prev: nodes[i - 1], next: nodes[i + 1]};
350 const astResult = ast.visit(visitor, context);
351 if (astResult) {
352 result.push(astResult);
353 }
354 });
355 return result;
356}

Callers 9

parseR3Function · 0.90
updateFromTemplateMethod · 0.90
_visitElementLikeMethod · 0.90
visitElementMethod · 0.85
visitExpansionMethod · 0.85
visitExpansionCaseMethod · 0.85
visitBlockMethod · 0.85
visitComponentMethod · 0.85
removeWhitespacesFunction · 0.85

Calls 3

visitMethod · 0.65
forEachMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…