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

Function calls

__tests__/cpp-string-literal-declarations.test.ts:46–52  ·  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

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

Calls 3

mapMethod · 0.80
callableFunction · 0.70
getCalleesMethod · 0.45

Tested by

no test coverage detected