Skip to content

Commit

Permalink
Fixes 10 year old bug that nobody ever encountered in prod... (#4038)
Browse files Browse the repository at this point in the history
  • Loading branch information
ericvergnaud authored Jan 16, 2023
1 parent 5fad975 commit 17fa1af
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions runtime/JavaScript/src/antlr4/Parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export default class Parser extends Recognizer {
*
* <p>If the symbol type does not match,
* {@link ANTLRErrorStrategy//recoverInline} is called on the current error
* strategy to attempt recovery. If {@link //getBuildParseTree} is
* strategy to attempt recovery. If {@link //buildParseTree} is
* {@code true} and the token index of the symbol returned by
* {@link ANTLRErrorStrategy//recoverInline} is -1, the symbol is added to
* the parse tree by calling {@link ParserRuleContext//addErrorNode}.</p>
Expand Down Expand Up @@ -117,7 +117,7 @@ export default class Parser extends Recognizer {
*
* <p>If the symbol type does not match,
* {@link ANTLRErrorStrategy//recoverInline} is called on the current error
* strategy to attempt recovery. If {@link //getBuildParseTree} is
* strategy to attempt recovery. If {@link //buildParseTree} is
* {@code true} and the token index of the symbol returned by
* {@link ANTLRErrorStrategy//recoverInline} is -1, the symbol is added to
* the parse tree by calling {@link ParserRuleContext//addErrorNode}.</p>
Expand All @@ -134,7 +134,7 @@ export default class Parser extends Recognizer {
this.consume();
} else {
t = this._errHandler.recoverInline(this);
if (this._buildParseTrees && t.tokenIndex === -1) {
if (this.buildParseTrees && t.tokenIndex === -1) {
// we must have conjured up a new token during single token
// insertion
// if it's not the current symbol
Expand Down

0 comments on commit 17fa1af

Please sign in to comment.