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