MCPcopy
hub / github.com/colbymchenry/codegraph / getCallers

Method getCallers

src/index.ts:1037–1039  ·  view source on GitHub ↗

* Get callers of a function/method * * @param nodeId - ID of the function/method node * @param maxDepth - Maximum depth to traverse (default: 1) * @returns Array of nodes that call this function

(nodeId: string, maxDepth: number = 1)

Source from the content-addressed store, hash-verified

1035 * @returns Array of nodes that call this function
1036 */
1037 getCallers(nodeId: string, maxDepth: number = 1): Array<{ node: Node; edge: Edge }> {
1038 return this.traverser.getCallers(nodeId, maxDepth);
1039 }
1040
1041 /**
1042 * Get callees of a function/method

Calls

no outgoing calls

Tested by 1

callerCountFunction · 0.36