Antlr4.Runtime.Atn.ArrayPredictionContext.ArrayPredictionContext C# (CSharp) Method

ArrayPredictionContext() private method

private ArrayPredictionContext ( PredictionContext parents, int returnStates ) : System
parents PredictionContext
returnStates int
return System
        internal ArrayPredictionContext(PredictionContext[] parents, int[] returnStates)
            : base(CalculateHashCode(parents, returnStates))
        {
            /*package*/
            System.Diagnostics.Debug.Assert(parents.Length == returnStates.Length);
            System.Diagnostics.Debug.Assert(returnStates.Length > 1 || returnStates[0] != EmptyFullStateKey, "Should be using PredictionContext.EMPTY instead.");
            this.parents = parents;
            this.returnStates = returnStates;
        }

Same methods

ArrayPredictionContext::ArrayPredictionContext ( PredictionContext parents, int returnStates, int hashCode ) : System