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

Function tableAt

src/resolution/frameworks/react-router.ts:120–124  ·  view source on GitHub ↗
(root: string)

Source from the content-addressed store, hash-verified

118 const byRoot = new Map<string, RouteTable>();
119 const shortened: { root: string; path: string; node: Node }[] = [];
120 const tableAt = (root: string): RouteTable => {
121 let t = byRoot.get(root);
122 if (!t) byRoot.set(root, (t = { source: all, exact: new Map(), dynamic: [] }));
123 return t;
124 };
125 for (const node of all) {
126 if (!isDestination(node)) continue;
127 const root = reactRouterRoot(node.filePath);

Callers 1

reactRouterTableFunction · 0.70

Calls 2

getMethod · 0.65
setMethod · 0.45

Tested by

no test coverage detected