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

Method getCallers

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

1717 * @returns Array of nodes that call this function
1718 */
1719 getCallers(nodeId: string, maxDepth: number = 1): Array<{ node: Node; edge: Edge }> {
1720 return this.traverser.getCallers(nodeId, maxDepth);
1721 }
1722
1723 /**
1724 * Get callees of a function/method

Callers 14

callerFilesFunction · 0.45
callersOfFunction · 0.45
greetCallersFunction · 0.45
callerCountFunction · 0.45
resolution.test.tsFile · 0.45
callersOfFunction · 0.45
graph.test.tsFile · 0.45
extraction.test.tsFile · 0.45

Calls

no outgoing calls

Tested by 5

callerFilesFunction · 0.36
callersOfFunction · 0.36
greetCallersFunction · 0.36
callerCountFunction · 0.36
callersOfFunction · 0.36