Antlr3.Analysis.DecisionProbe.ReportRecursionOverflow C# (CSharp) Method

ReportRecursionOverflow() public method

public ReportRecursionOverflow ( DFAState d, NFAConfiguration recursionNFAConfiguration ) : void
d DFAState
recursionNFAConfiguration NFAConfiguration
return void
        public virtual void ReportRecursionOverflow( DFAState d,
                                            NFAConfiguration recursionNFAConfiguration )
        {
            // track the state number rather than the state as d will change
            // out from underneath us; hash wouldn't return any value

            // left-recursion is detected in start state.  Since we can't
            // call resolveNondeterminism() on the start state (it would
            // not look k=1 to get min single token lookahead), we must
            // prevent errors derived from this state.  Avoid start state
            if ( d.StateNumber > 0 )
            {
                int stateI = d.StateNumber;
                _stateToRecursionOverflowConfigurationsMap.Map( stateI, recursionNFAConfiguration );
            }
        }