MCPcopy
hub / github.com/angular/angular / visitChildren

Method visitChildren

packages/compiler/src/ml_parser/ast.ts:308–319  ·  view source on GitHub ↗
(
    context: any,
    cb: (visit: <V extends Node>(children: V[] | undefined) => void) => void,
  )

Source from the content-addressed store, hash-verified

306 }
307
308 private visitChildren(
309 context: any,
310 cb: (visit: <V extends Node>(children: V[] | undefined) => void) => void,
311 ) {
312 let results: any[][] = [];
313 let t = this;
314 function visit<T extends Node>(children: T[] | undefined) {
315 if (children) results.push(visitAll(t, children, context));
316 }
317 cb(visit);
318 return Array.prototype.concat.apply([], results);
319 }
320}

Callers 5

visitElementMethod · 0.95
visitExpansionMethod · 0.95
visitBlockMethod · 0.95
visitComponentMethod · 0.95
visitDirectiveMethod · 0.95

Calls 2

applyMethod · 0.65
cbFunction · 0.50

Tested by

no test coverage detected