MCPcopy Index your code
hub / github.com/angular/angular / createSnapshot

Function createSnapshot

packages/router/test/router_state.spec.ts:113–129  ·  view source on GitHub ↗
(params: Params, url: UrlSegment[])

Source from the content-addressed store, hash-verified

111
112 describe('equalParamsAndUrlSegments', () => {
113 function createSnapshot(params: Params, url: UrlSegment[]): ActivatedRouteSnapshot {
114 const snapshot = new (ActivatedRouteSnapshot as any)(
115 url,
116 params,
117 null,
118 null,
119 null,
120 null,
121 null,
122 null,
123 null,
124 -1,
125 null,
126 );
127 snapshot._routerState = new (RouterStateSnapshot as any)('', new TreeNode(snapshot, []));
128 return snapshot;
129 }
130
131 function createSnapshotPairWithParent(
132 params: [Params, Params],

Callers 3

matchWithChecksFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…