(scanner: Scanner)
| 823 | } |
| 824 | |
| 825 | function consumeWord(scanner: Scanner): string { |
| 826 | const start = scanner.index; |
| 827 | scanner.index += 1; |
| 828 | while (isWordPart(asChar(scanner.source, scanner.index))) { |
| 829 | scanner.index += 1; |
| 830 | } |
| 831 | return scanner.source.slice(start, scanner.index); |
| 832 | } |
| 833 | |
| 834 | function consumeNumber(scanner: Scanner): string { |
| 835 | const source = scanner.source; |
no test coverage detected