(requested: readonly NodeKind[] | undefined)
| 795 | } |
| 796 | |
| 797 | function normalizeKinds(requested: readonly NodeKind[] | undefined): NodeKind[] { |
| 798 | if (!requested || requested.length === 0) return [...DEAD_CODE_KINDS]; |
| 799 | const kinds = requested.filter((kind) => DEAD_CODE_ALLOWED_KINDS.has(kind)); |
| 800 | return kinds.length > 0 ? [...new Set(kinds)] : [...DEAD_CODE_KINDS]; |
| 801 | } |
| 802 | |
| 803 | /** |
| 804 | * The type each candidate is declared in, for the candidates that are members. |
no test coverage detected