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

Method visitChildren

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

Source from the content-addressed store, hash-verified

249 visitLetDeclaration(decl: LetDeclaration, context: any) {}
250
251 private visitChildren(
252 context: any,
253 cb: (visit: <V extends Node>(children: V[] | undefined) => void) => void,
254 ) {
255 let results: any[][] = [];
256 let t = this;
257 function visit<T extends Node>(children: T[] | undefined) {
258 if (children) results.push(visitAll(t, children, context));
259 }
260 cb(visit);
261 return Array.prototype.concat.apply([], results);
262 }
263}

Callers 3

visitElementMethod · 0.95
visitExpansionMethod · 0.95
visitBlockMethod · 0.95

Calls 2

applyMethod · 0.65
cbFunction · 0.50

Tested by

no test coverage detected