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

Function collectSnapshots

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

Source from the content-addressed store, hash-verified

1557});
1558
1559function collectSnapshots(
1560 snapshot: ActivatedRouteSnapshot,
1561 into: ActivatedRouteSnapshot[] = [],
1562): ActivatedRouteSnapshot[] {
1563 into.push(snapshot);
1564 for (const child of snapshot.children) {
1565 collectSnapshots(child, into);
1566 }
1567 return into;
1568}
1569
1570async function recognize(
1571 config: Routes,

Callers 1

recognize.spec.tsFile · 0.85

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected