* Skip whitespace from current scanner position.
()
| 492 | * Skip whitespace from current scanner position. |
| 493 | */ |
| 494 | private skipWhitespaceFromCurrent(): void { |
| 495 | while (true) { |
| 496 | const byte = this.scanner.peek(); |
| 497 | |
| 498 | if (byte === -1) { |
| 499 | break; |
| 500 | } |
| 501 | |
| 502 | if (byte === SPACE || byte === LF || byte === CR || byte === TAB) { |
| 503 | this.scanner.advance(); |
| 504 | } else { |
| 505 | break; |
| 506 | } |
| 507 | } |
| 508 | } |
| 509 | |
| 510 | /** |
| 511 | * Check if bytes at position match a string. |
no test coverage detected