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

Function sym

__tests__/tanstack-router.test.ts:293–297  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

291 return r;
292 };
293 const sym = (name: string): Node => {
294 const n = cg.getNodesByName(name).find((n) => n.kind !== 'route' && n.kind !== 'file' && n.kind !== 'import');
295 if (!n) throw new Error(`no symbol ${name}`);
296 return n;
297 };
298 const navs = (from: Node) => cg.getOutgoingEdges(from.id).filter((e) => e.kind === 'navigates');
299 const hrefs = (from: Node) =>
300 navs(from)

Callers 1

Calls 1

getNodesByNameMethod · 0.65

Tested by

no test coverage detected