Antlr4.Runtime.DefaultErrorStrategy.ReportInputMismatch C# (CSharp) Метод

ReportInputMismatch() защищенный Метод

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
Результат 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);
        }