* Records an error and skips over the token stream until reaching a recoverable point. See * `this.skip` for more details on token skipping.
(message: string, index = this.index)
| 1815 | * `this.skip` for more details on token skipping. |
| 1816 | */ |
| 1817 | private error(message: string, index = this.index) { |
| 1818 | this.errors.push( |
| 1819 | getParseError(message, this.input, this.getErrorLocationText(index), this.parseSourceSpan), |
| 1820 | ); |
| 1821 | this.skip(); |
| 1822 | } |
| 1823 | |
| 1824 | private getErrorLocationText(index: number) { |
| 1825 | return index < this.tokens.length |
no test coverage detected