Antlr4.Runtime.Atn.ProfilingATNSimulator.EvalSemanticContext C# (CSharp) Method

EvalSemanticContext() protected method

protected EvalSemanticContext ( SemanticContext pred, ParserRuleContext parserCallStack, int alt, bool fullCtx ) : bool
pred SemanticContext
parserCallStack ParserRuleContext
alt int
fullCtx bool
return bool
        protected override bool EvalSemanticContext(SemanticContext pred, ParserRuleContext parserCallStack, int alt, bool fullCtx)
        {
            bool result = base.EvalSemanticContext(pred, parserCallStack, alt, fullCtx);
            if (!(pred is SemanticContext.PrecedencePredicate)) {
            bool fullContext = llStopIndex >= 0;
            int stopIndex = fullContext ? llStopIndex : sllStopIndex;
            decisions[currentDecision].predicateEvals.Add(
                new PredicateEvalInfo(null , currentDecision, input, startIndex, stopIndex, pred, result, alt/*, fullCtx*/)
            );
            }

            return result;
        }