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

Method hasHeuristicEdge

src/mcp/tools.ts:2001–2002  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

1999 const dynNamed = new Map<string, Node>();
2000 const DYN_KINDS = new Set(['constant', 'variable', 'field', 'property']);
2001 const hasHeuristicEdge = (id: string): boolean =>
2002 [...cg.getCallers(id), ...cg.getCallees(id)].some(({ edge }) => edge.provenance === 'heuristic');
2003 for (const t of tokens) {
2004 const hits = this.findAllSymbols(cg, t).nodes;
2005 const cands = hits.filter((n) => CALLABLE.has(n.kind));

Callers

nothing calls this directly

Calls 2

getCallersMethod · 0.45
getCalleesMethod · 0.45

Tested by

no test coverage detected