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

Function calls

__tests__/cpp-smart-pointer-receiver.test.ts:53–59  ·  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

51
52/** `calls` callees of a function or method, as `qualifiedName`. */
53function calls(cg: CodeGraph, caller: string): string[] {
54 return cg
55 .getCallees(callable(cg, caller).id)
56 .filter((r) => r.edge.kind === 'calls')
57 .map((r) => r.node.qualifiedName)
58 .sort();
59}
60
61const lines = (...l: string[]): string => [...l, ''].join('\n');
62

Calls 3

mapMethod · 0.80
callableFunction · 0.70
getCalleesMethod · 0.45

Tested by

no test coverage detected