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

Function findMethod

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

Source from the content-addressed store, hash-verified

55 }
56
57 function findMethod(name: string) {
58 const hit = cg
59 .searchNodes(name)
60 .find((r) => (r.node.kind === 'method' || r.node.kind === 'function') && r.node.name === name);
61 expect(hit, `expected an indexed definition of ${name}`).toBeDefined();
62 return hit!.node;
63 }
64
65 describe('sync() heals an interrupted resolution run', () => {
66 beforeEach(async () => {

Callers 1

Calls 1

searchNodesMethod · 0.45

Tested by

no test coverage detected