We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fd8598d + 5896562 commit 084d1efCopy full SHA for 084d1ef
src/language/parser.js
@@ -968,7 +968,7 @@ function skip(parser: Parser, kind: number): boolean {
968
969
/**
970
* If the next token is of the given kind, return that token after advancing
971
- * the parser. Otherwise, do not change the parser state and return false.
+ * the parser. Otherwise, do not change the parser state and throw an error.
972
*/
973
function expect(parser: Parser, kind: number): Token {
974
const token = parser.token;
0 commit comments