(row: WireDeadCodeRow)
| 63 | |
| 64 | /** The row's second line: what it is, and what deleting it would remove. */ |
| 65 | export function deadCodeRowMeta(row: WireDeadCodeRow): string { |
| 66 | const parts = [kindWord(row.kind), plural(row.lines, 'line')]; |
| 67 | if (row.members.total > 0) { |
| 68 | parts.push(`${plural(row.members.total, 'member')} unreachable with it`); |
| 69 | } |
| 70 | return parts.join(' · '); |
| 71 | } |
| 72 | |
| 73 | /** The group header's right-hand count. */ |
| 74 | export function groupMeta(group: WireDeadCodeGroup): string { |