(input: any)
| 2777 | } |
| 2778 | |
| 2779 | function filterLiterals(input: any) { |
| 2780 | return (ast: AST) => { |
| 2781 | const encoded = toCandidate(ast) |
| 2782 | return encoded._tag === "Literal" ? |
| 2783 | encoded.literal === input |
| 2784 | : encoded._tag === "UniqueSymbol" ? |
| 2785 | encoded.symbol === input |
| 2786 | : true |
| 2787 | } |
| 2788 | } |
| 2789 | |
| 2790 | /** |
| 2791 | * The goal is to reduce the number of a union members that will be checked. |