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

Function calls

__tests__/rust-generic-bound-paths.test.ts:41–47  ·  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

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

Calls 3

mapMethod · 0.80
callableFunction · 0.70
getCalleesMethod · 0.45

Tested by

no test coverage detected