(scanner: Scanner)
| 616 | |
| 617 | const NAN_REGEXP = /[+-]?nan\b/y; |
| 618 | export function nan(scanner: Scanner): ParseResult<number> { |
| 619 | scanner.skipWhitespaces(); |
| 620 | const match = scanner.match(NAN_REGEXP); |
| 621 | if (!match) return failure(); |
| 622 | const string = match[0]; |
| 623 | scanner.next(string.length); |
| 624 | const value = NaN; |
| 625 | return success(value); |
| 626 | } |
| 627 | |
| 628 | export const dottedKey = join1(or([bareKey, basicString, literalString]), "."); |
| 629 |
nothing calls this directly
no test coverage detected