(node: WireNodeRef)
| 103 | * past the panel's width on any deeply-nested file. |
| 104 | */ |
| 105 | export function locationOf(node: WireNodeRef): string { |
| 106 | if (node.kind !== 'file') return `${basename(node.file)}:${node.line}`; |
| 107 | const cut = node.file.lastIndexOf('/'); |
| 108 | return cut < 0 ? 'project root' : node.file.slice(0, cut); |
| 109 | } |
| 110 | |
| 111 | function symbolItem(node: WireNodeRef, meta = ''): PaletteItem { |
| 112 | return { |
no test coverage detected