ParserErrorListener.SyntaxError(TextWriter, IRecognizer, IToken, Int32, Int32, String, RecognitionException) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Throw a syntax error based one current context.
public override void SyntaxError (System.IO.TextWriter output, Antlr4.Runtime.IRecognizer recognizer, Antlr4.Runtime.IToken offendingSymbol, int line, int charPositionInLine, string msg, Antlr4.Runtime.RecognitionException e);
override this.SyntaxError : System.IO.TextWriter * Antlr4.Runtime.IRecognizer * Antlr4.Runtime.IToken * int * int * string * Antlr4.Runtime.RecognitionException -> unit
Public Overrides Sub SyntaxError (output As TextWriter, recognizer As IRecognizer, offendingSymbol As IToken, line As Integer, charPositionInLine As Integer, msg As String, e As RecognitionException)
Parameters
- output
- TextWriter
Text writer.
- recognizer
- Antlr4.Runtime.IRecognizer
An Antlr4 runtime recognizer.
- offendingSymbol
- Antlr4.Runtime.IToken
The token violate the lexer rules.
- line
- Int32
The line number where the error occurred.
- charPositionInLine
- Int32
The position of character in the line where the error occurred.
- msg
- String
The error message.
- e
- Antlr4.Runtime.RecognitionException
The RecognitionException.