(row: CallSiteRow)
| 8538 | if (callees.length === 0 && callers.length === 0) return ''; |
| 8539 | const callee = (row: CallSiteRow) => fmt(row, `${row.node.filePath}:${row.node.startLine}`); |
| 8540 | const caller = (row: CallSiteRow) => { |
| 8541 | const sites = callSiteLines(row.edges); |
| 8542 | const at = sites.length > 0 ? formatCallSiteLines(sites, TRAIL_CALL_SITES) : String(row.node.startLine); |
| 8543 | return fmt(row, `${row.node.filePath}:${at}${row.recursive ? ', calls itself' : ''}`); |
| 8544 | }; |
| 8545 | const lines: string[] = ['', '**Trail — codegraph_node any of these to follow it (no Read needed)**']; |
| 8546 | if (callees.length > 0) { |
| 8547 | lines.push(`**Calls →** ${callees.slice(0, TRAIL_CAP).map(callee).join(', ')}${callees.length > TRAIL_CAP ? `, +${callees.length - TRAIL_CAP} more` : ''}`); |
nothing calls this directly
no test coverage detected