(row: CallSiteRow)
| 8685 | if (callees.length === 0 && callers.length === 0) return ''; |
| 8686 | const callee = (row: CallSiteRow) => fmt(row, `${row.node.filePath}:${row.node.startLine}`); |
| 8687 | const caller = (row: CallSiteRow) => { |
| 8688 | const sites = callSiteLines(row.edges); |
| 8689 | const at = sites.length > 0 ? formatCallSiteLines(sites, TRAIL_CALL_SITES) : String(row.node.startLine); |
| 8690 | return fmt(row, `${row.node.filePath}:${at}${row.recursive ? ', calls itself' : ''}`); |
| 8691 | }; |
| 8692 | const lines: string[] = ['', '**Trail — codegraph_node any of these to follow it (no Read needed)**']; |
| 8693 | if (callees.length > 0) { |
| 8694 | 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