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

Function calls

__tests__/cpp-nested-template-receiver.test.ts:45–51  ·  view source on GitHub ↗

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

(cg: CodeGraph, caller: string)

Source from the content-addressed store, hash-verified

43
44/** `calls` callees of a function or method, as `qualifiedName (file)`. */
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} (${r.node.filePath})`)
50 .sort();
51}
52
53/** `calls` callees with how each was resolved: `qualifiedName resolvedBy@confidence`. */
54function resolvedCalls(cg: CodeGraph, caller: string): string[] {

Calls 3

mapMethod · 0.80
callableFunction · 0.70
getCalleesMethod · 0.45

Tested by

no test coverage detected