MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / mount

Function mount

src/resolution/frameworks/react.ts:1387–1390  ·  view source on GitHub ↗
(at: number)

Source from the content-addressed store, hash-verified

1385 routes.push({ path, parts: partsOf.get(scope)!, component: scope.component, lazy: scope.lazy, layouts, at: scope.at });
1386 }
1387 const mount = (at: number): { parts: RoutePart[]; layouts: string[] } => {
1388 const outer = around(at, at);
1389 return { parts: outer.map((c) => c.part), layouts: outer.filter(layout).map(layoutOf) };
1390 };
1391 return {
1392 routes: routes.sort((a, b) => a.at - b.at),
1393 names: names.map((n) => {

Callers 2

scanRoutesFunction · 0.70
main.tsFile · 0.50

Calls 2

aroundFunction · 0.85
mapMethod · 0.80

Tested by

no test coverage detected