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

Function collectSnapshots

packages/router/test/recognize.spec.ts:1374–1383  ·  view source on GitHub ↗
(
  snapshot: ActivatedRouteSnapshot,
  into: ActivatedRouteSnapshot[] = [],
)

Source from the content-addressed store, hash-verified

1372});
1373
1374function collectSnapshots(
1375 snapshot: ActivatedRouteSnapshot,
1376 into: ActivatedRouteSnapshot[] = [],
1377): ActivatedRouteSnapshot[] {
1378 into.push(snapshot);
1379 for (const child of snapshot.children) {
1380 collectSnapshots(child, into);
1381 }
1382 return into;
1383}
1384
1385async function recognize(
1386 config: Routes,

Callers 1

recognize.spec.tsFile · 0.85

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected