Function
collectSnapshots
(
snapshot: ActivatedRouteSnapshot,
into: ActivatedRouteSnapshot[] = [],
)
Source from the content-addressed store, hash-verified
| 1557 | }); |
| 1558 | |
| 1559 | function 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 | |
| 1570 | async function recognize( |
| 1571 | config: Routes, |
Tested by
no test coverage detected