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

Method getCallGraph

src/index.ts:3079–3081  ·  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

3077 * @returns Subgraph containing the call graph
3078 */
3079 getCallGraph(nodeId: string, depth: number = 2): Subgraph {
3080 return this.traverser.getCallGraph(nodeId, depth);
3081 }
3082
3083 /**
3084 * 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