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

Method getCallGraph

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

1579 * @returns Subgraph containing the call graph
1580 */
1581 getCallGraph(nodeId: string, depth: number = 2): Subgraph {
1582 return this.traverser.getCallGraph(nodeId, depth);
1583 }
1584
1585 /**
1586 * 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