(expected)
| 150 | } |
| 151 | |
| 152 | _match(expected) { |
| 153 | const index = this.lexer.getIndex() - 1; |
| 154 | if (this.text[index] === expected) { |
| 155 | this.token = this.lexer.getNextToken(this.decimalCharacter); |
| 156 | } else { |
| 157 | throw new Error(`Unexpected token '${this.token.symbol}' at position '${index}' in the match function`); |
| 158 | } |
| 159 | } |
| 160 | } |
no test coverage detected