* 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)
| 3184 | * @returns Array of nodes that call this function |
| 3185 | */ |
| 3186 | getCallers(nodeId: string, maxDepth: number = 1): Array<{ node: Node; edge: Edge }> { |
| 3187 | return this.traverser.getCallers(nodeId, maxDepth); |
| 3188 | } |
| 3189 | |
| 3190 | /** |
| 3191 | * Get callees of a function/method |
no outgoing calls