public class LSCustomErrorStrategy extends BallerinaParserErrorStrategy
Constructor and Description |
---|
LSCustomErrorStrategy(LSContext context) |
Modifier and Type | Method and Description |
---|---|
void |
reportInputMismatch(org.antlr.v4.runtime.Parser parser,
org.antlr.v4.runtime.InputMismatchException e) |
void |
reportMissingToken(org.antlr.v4.runtime.Parser parser) |
void |
reportNoViableAlternative(org.antlr.v4.runtime.Parser parser,
org.antlr.v4.runtime.NoViableAltException e) |
void |
reportUnwantedToken(org.antlr.v4.runtime.Parser parser) |
protected void |
setErrorState(org.antlr.v4.runtime.Parser parser) |
getListener, reportError, reportFailedPredicate
beginErrorCondition, consumeUntil, endErrorCondition, escapeWSAndQuote, getErrorRecoverySet, getExpectedTokens, getMissingSymbol, getSymbolText, getSymbolType, getTokenErrorDisplay, inErrorRecoveryMode, recover, recoverInline, reportMatch, reset, singleTokenDeletion, singleTokenInsertion, sync
public LSCustomErrorStrategy(LSContext context)
public void reportInputMismatch(org.antlr.v4.runtime.Parser parser, org.antlr.v4.runtime.InputMismatchException e)
reportInputMismatch
in class BallerinaParserErrorStrategy
public void reportMissingToken(org.antlr.v4.runtime.Parser parser)
reportMissingToken
in class BallerinaParserErrorStrategy
public void reportNoViableAlternative(org.antlr.v4.runtime.Parser parser, org.antlr.v4.runtime.NoViableAltException e)
reportNoViableAlternative
in class BallerinaParserErrorStrategy
public void reportUnwantedToken(org.antlr.v4.runtime.Parser parser)
reportUnwantedToken
in class BallerinaParserErrorStrategy
protected void setErrorState(org.antlr.v4.runtime.Parser parser)
setErrorState
in class BallerinaParserErrorStrategy
Copyright © 2019 WSO2. All rights reserved.