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

Method getCallers

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

3114 * @returns Array of nodes that call this function
3115 */
3116 getCallers(nodeId: string, maxDepth: number = 1): Array<{ node: Node; edge: Edge }> {
3117 return this.traverser.getCallers(nodeId, maxDepth);
3118 }
3119
3120 /**
3121 * Get callees of a function/method

Calls

no outgoing calls

Tested by 13

expectNoMethodCallFunction · 0.36
callerFilesFunction · 0.36
callersOfFunction · 0.36
callersOfFunction · 0.36
greetCallersFunction · 0.36
callerCountFunction · 0.36
callersFunction · 0.36
callersOfFunction · 0.36
requestsFunction · 0.36
callersOfFunction · 0.36
overridersFunction · 0.36
callersOfFunction · 0.36