* 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)
| 1861 | * `this.skip` for more details on token skipping. |
| 1862 | */ |
| 1863 | private error(message: string, index = this.index) { |
| 1864 | this.errors.push( |
| 1865 | getParseError(message, this.input, this.getErrorLocationText(index), this.parseSourceSpan), |
| 1866 | ); |
| 1867 | this.skip(); |
| 1868 | } |
| 1869 | |
| 1870 | private getErrorLocationText(index: number) { |
| 1871 | return index < this.tokens.length |
no test coverage detected