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

Function resolvedCalls

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

`calls` callees with how each was resolved: `qualifiedName resolvedBy@confidence`.

(cg: CodeGraph, caller: string)

Source from the content-addressed store, hash-verified

52
53/** `calls` callees with how each was resolved: `qualifiedName resolvedBy@confidence`. */
54function resolvedCalls(cg: CodeGraph, caller: string): string[] {
55 return cg
56 .getCallees(callable(cg, caller).id)
57 .filter((r) => r.edge.kind === 'calls')
58 .map((r) => `${r.node.qualifiedName} ${String(r.edge.metadata?.resolvedBy)}@${String(r.edge.metadata?.confidence)}`)
59 .sort();
60}
61
62/** facebook/rocksdb's shapes, trimmed: the small vector, and the class whose words the receivers share. */
63const ROCKSDB = {

Calls 3

mapMethod · 0.80
callableFunction · 0.70
getCalleesMethod · 0.45

Tested by

no test coverage detected