(state: State)
| 190 | } |
| 191 | |
| 192 | function processNext(state: State) { |
| 193 | const nextPart = state.dateParts[state.cursor].nextPart() |
| 194 | const cursor = Option.match(nextPart, { |
| 195 | onNone: () => state.dateParts.findIndex((part) => !part.isToken()), |
| 196 | onSome: (next) => state.dateParts.indexOf(next) |
| 197 | }) |
| 198 | return Action.NextFrame({ |
| 199 | state: { ...state, cursor } |
| 200 | }) |
| 201 | } |
| 202 | |
| 203 | function defaultProcessor(value: string, state: State) { |
| 204 | if (/\d/.test(value)) { |
no test coverage detected
searching dependent graphs…