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

ReportFailedPredicate() protected method

This is called by ReportError(Parser, RecognitionException) when the exception is a FailedPredicateException .
protected ReportFailedPredicate ( Parser recognizer, FailedPredicateException e ) : void
recognizer Parser the parser instance
e FailedPredicateException the recognition exception
return void
        protected internal virtual void ReportFailedPredicate(Parser recognizer, FailedPredicateException e)
        {
            string ruleName = recognizer.RuleNames[recognizer.RuleContext.RuleIndex];
            string msg = "rule " + ruleName + " " + e.Message;
            NotifyErrorListeners(recognizer, msg, e);
        }