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

Function callsFrom

__tests__/cpp-implicit-this-calls.test.ts:43–45  ·  view source on GitHub ↗

`name -> target qualified name` for each call (or construction) the named function or method in `file` makes.

(cg: CodeGraph, file: string, qualifiedName: string)

Source from the content-addressed store, hash-verified

41
42/** `name -> target qualified name` for each call (or construction) the named function or method in `file` makes. */
43function callsFrom(cg: CodeGraph, file: string, qualifiedName: string): string[] {
44 return callEdgesFrom(cg, file, qualifiedName).map((e) => `${e.refName} -> ${e.target}`).sort();
45}
46
47/** Whether C++ name lookup from the calling function (not a guess by name) placed the call `refName`. */
48function placedByLookup(cg: CodeGraph, file: string, qualifiedName: string, refName: string): boolean {

Callers 1

Calls 2

callEdgesFromFunction · 0.85
mapMethod · 0.80

Tested by

no test coverage detected