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

Method getCallGraph

src/index.ts:3179–3181  ·  view source on GitHub ↗

* Get the call graph for a function * * Returns both callers (functions that call this function) and * callees (functions called by this function) up to the specified depth. * * @param nodeId - ID of the function/method node * @param depth - Maximum depth in each direction (default

(nodeId: string, depth: number = 2)

Source from the content-addressed store, hash-verified

3177 * @returns Subgraph containing the call graph
3178 */
3179 getCallGraph(nodeId: string, depth: number = 2): Subgraph {
3180 return this.traverser.getCallGraph(nodeId, depth);
3181 }
3182
3183 /**
3184 * Get the type hierarchy for a class/interface

Callers 2

graph.test.tsFile · 0.45
foundation.test.tsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected