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

Function node

__tests__/new-expression-receiver.test.ts:68–69  ·  view source on GitHub ↗
(name: string, file: string)

Source from the content-addressed store, hash-verified

66});
67
68const node = (name: string, file: string) =>
69 cg.getNodesByName(name).find((n) => n.filePath.endsWith(file) && (n.kind === 'function' || n.kind === 'method'))!;
70const calleesOf = (name: string, file: string) =>
71 cg.getCallees(node(name, file).id)
72 .filter(({ edge }) => edge.kind === 'calls')

Callers 2

calleesOfFunction · 0.70

Calls 1

getNodesByNameMethod · 0.65

Tested by

no test coverage detected