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

Function node

__tests__/expression-receiver-calls.test.ts:80–81  ·  view source on GitHub ↗
(name: string, file: string)

Source from the content-addressed store, hash-verified

78});
79
80const node = (name: string, file: string) =>
81 cg.getNodesByName(name).find((n) => n.filePath.endsWith(file) && (n.kind === 'function' || n.kind === 'method'))!;
82const calleesOf = (name: string, file: string) =>
83 cg.getCallees(node(name, file).id)
84 .filter(({ edge }) => edge.kind === 'calls')

Callers 2

calleesOfFunction · 0.70

Calls 1

getNodesByNameMethod · 0.65

Tested by

no test coverage detected