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

Function calls

__tests__/cpp-specialization-qualifiers.test.ts:40–46  ·  view source on GitHub ↗

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

(cg: CodeGraph, caller: string)

Source from the content-addressed store, hash-verified

38
39/** `calls` callees of a function or method, as `qualifiedName` and file. */
40function calls(cg: CodeGraph, caller: string): string[] {
41 return cg
42 .getCallees(callable(cg, caller).id)
43 .filter((r) => r.edge.kind === 'calls')
44 .map((r) => `${r.node.qualifiedName} (${r.node.filePath})`)
45 .sort();
46}
47
48const lines = (...l: string[]): string => [...l, ''].join('\n');
49

Calls 3

mapMethod · 0.80
callableFunction · 0.70
getCalleesMethod · 0.45

Tested by

no test coverage detected