(unexpectedValueHandler = defaultCatcher)
| 113 | } |
| 114 | |
| 115 | exhaustive(unexpectedValueHandler = defaultCatcher): output { |
| 116 | if (this.state.matched) return this.state.value; |
| 117 | return unexpectedValueHandler(this.input); |
| 118 | } |
| 119 | |
| 120 | run(): output { |
| 121 | return this.exhaustive(); |
no outgoing calls