(nodes: Node[], title: string, labels?: Map<string, string>)
| 4822 | } |
| 4823 | |
| 4824 | private formatNodeList(nodes: Node[], title: string, labels?: Map<string, string>): string { |
| 4825 | const lines: string[] = [`**${title} (${nodes.length} found)**`, '']; |
| 4826 | |
| 4827 | for (const node of nodes) { |
| 4828 | const location = node.startLine ? `:${node.startLine}` : ''; |
| 4829 | // Compact: just name, kind, location — plus the relationship when it |
| 4830 | // isn't a plain call (callback registration, instantiation, …). |
| 4831 | const label = labels?.get(node.id); |
| 4832 | lines.push( |
| 4833 | `- ${node.name} (${node.kind}) - ${node.filePath}${location}${label ? ` — via ${label}` : ''}` |
| 4834 | ); |
| 4835 | } |
| 4836 | |
| 4837 | return lines.join('\n'); |
| 4838 | } |
| 4839 | |
| 4840 | /** |
| 4841 | * Relationship label for a non-`calls` edge in callers/callees lists. A |
no test coverage detected