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

Function callable

__tests__/rust-generic-bound-paths.test.ts:34–38  ·  view source on GitHub ↗
(cg: CodeGraph, qualifiedName: string)

Source from the content-addressed store, hash-verified

32}
33
34function callable(cg: CodeGraph, qualifiedName: string): Node {
35 const node = [...cg.getNodesByKind('method'), ...cg.getNodesByKind('function')].find((n) => n.qualifiedName === qualifiedName);
36 if (!node) throw new Error(`no function or method ${qualifiedName}`);
37 return node;
38}
39
40/** `calls` callees of a function or method, as `qualifiedName`. */
41function calls(cg: CodeGraph, caller: string): string[] {

Callers 1

callsFunction · 0.70

Calls 1

getNodesByKindMethod · 0.65

Tested by

no test coverage detected