(...expected)
| 1242 | throw new ParseRecoverySentinel(parseError); |
| 1243 | } |
| 1244 | raiseExpected(...expected) { |
| 1245 | var msg = expected.length === 1 ? "Expected '" + expected[0] + "' but found '" + this.currentToken().value + "'" : "Expected one of: " + expected.map((e) => "'" + e + "'").join(", "); |
| 1246 | this.raiseError(msg, expected); |
| 1247 | } |
| 1248 | // =========================== |
| 1249 | // Parser-owned methods |
| 1250 | // =========================== |
no test coverage detected