Antlr4.Runtime.DefaultErrorStrategy.ReportInputMismatch C# (CSharp) Method

ReportInputMismatch() protected method

This is called by ReportError(Parser, RecognitionException) when the exception is an InputMismatchException .
protected ReportInputMismatch ( Parser recognizer, InputMismatchException e ) : void
recognizer Parser the parser instance
e InputMismatchException the recognition exception
return void
        protected internal virtual void ReportInputMismatch(Parser recognizer, InputMismatchException e)
        {
            string msg = "mismatched input " + GetTokenErrorDisplay(e.OffendingToken) + " expecting " + e.GetExpectedTokens().ToString(recognizer.Vocabulary);
            NotifyErrorListeners(recognizer, msg, e);
        }