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

Function findMethod

__tests__/orphaned-refs-sweep.test.ts:59–65  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

57 }
58
59 function findMethod(name: string) {
60 const hit = cg
61 .searchNodes(name)
62 .find((r) => (r.node.kind === 'method' || r.node.kind === 'function') && r.node.name === name);
63 expect(hit, `expected an indexed definition of ${name}`).toBeDefined();
64 return hit!.node;
65 }
66
67 // Compare call sites and resolution evidence, not just edge counts: a
68 // recovery can also silently downgrade confidence without losing a row.

Callers 1

Calls 1

searchNodesMethod · 0.65

Tested by

no test coverage detected