(registry: FlagRegistry)
| 785 | /* ========================================================================== */ |
| 786 | |
| 787 | const createParseState = (registry: FlagRegistry): ParseState => ({ |
| 788 | flags: createFlagAccumulator(registry.params), |
| 789 | arguments: [], |
| 790 | errors: [], |
| 791 | mode: { _tag: "AwaitingFirstValue" } |
| 792 | }) |
| 793 | |
| 794 | const toLeafResult = (state: ParseState): LeafResult => ({ |
| 795 | _tag: "Leaf", |
no test coverage detected