(...expected)
| 232 | } |
| 233 | |
| 234 | raiseExpected(...expected) { |
| 235 | var msg = expected.length === 1 |
| 236 | ? "Expected '" + expected[0] + "' but found '" + this.currentToken().value + "'" |
| 237 | : "Expected one of: " + expected.map(e => "'" + e + "'").join(", "); |
| 238 | this.raiseError(msg, expected); |
| 239 | } |
| 240 | |
| 241 | // =========================== |
| 242 | // Parser-owned methods |
no test coverage detected