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

Function calls

__tests__/cpp-receiver-global-far-library.test.ts:45–51  ·  view source on GitHub ↗

`calls` callees of a function or method, as `qualifiedName`.

(cg: CodeGraph, caller: string)

Source from the content-addressed store, hash-verified

43
44/** `calls` callees of a function or method, as `qualifiedName`. */
45function calls(cg: CodeGraph, caller: string): string[] {
46 return cg
47 .getCallees(callable(cg, caller).id)
48 .filter((r) => r.edge.kind === 'calls')
49 .map((r) => r.node.qualifiedName)
50 .sort();
51}
52
53const lines = (...l: string[]): string => [...l, ''].join('\n');
54

Calls 3

mapMethod · 0.80
callableFunction · 0.70
getCalleesMethod · 0.45

Tested by

no test coverage detected