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

Function resolvers

__tests__/cpp-test-fixture-call.test.ts:58–64  ·  view source on GitHub ↗

`calls` callees as `qualifiedName by resolvedBy`.

(cg: CodeGraph, caller: string)

Source from the content-addressed store, hash-verified

56
57/** `calls` callees as `qualifiedName by resolvedBy`. */
58function resolvers(cg: CodeGraph, caller: string): string[] {
59 return cg
60 .getCallees(callable(cg, caller).id)
61 .filter((r) => r.edge.kind === 'calls')
62 .map((r) => `${r.node.qualifiedName} by ${(r.edge.metadata as { resolvedBy?: string } | undefined)?.resolvedBy}`)
63 .sort();
64}
65
66const lines = (...text: string[]): string => [...text, ''].join('\n');
67

Callers 1

Calls 3

mapMethod · 0.80
callableFunction · 0.70
getCalleesMethod · 0.45

Tested by

no test coverage detected