(payload: WireDeadCode)
| 85 | * points at the toggle that would widen it. |
| 86 | */ |
| 87 | export function emptyMessage(payload: WireDeadCode): string { |
| 88 | if (payload.candidates === 0) { |
| 89 | return 'Every symbol in this index is referenced by something. Nothing to show.'; |
| 90 | } |
| 91 | if (payload.includeExported) { |
| 92 | return `Every one of the ${payload.candidates.toLocaleString()} symbols with no incoming reference has a reason to be reachable anyway — see the list of exclusions below.`; |
| 93 | } |
| 94 | return `All ${payload.candidates.toLocaleString()} symbols with no incoming reference are either reachable from outside this repository or excluded for the reasons below. Turn on "including exported" to see the ones the index cannot check.`; |
| 95 | } |
nothing calls this directly
no outgoing calls
no test coverage detected