Antlr4.Codegen.Model.LL1AltBlock.LL1AltBlock C# (CSharp) Метод

LL1AltBlock() публичный Метод

public LL1AltBlock ( OutputModelFactory factory, GrammarAST blkAST, IList alts ) : System.Collections.Generic
factory OutputModelFactory
blkAST Antlr4.Tool.Ast.GrammarAST
alts IList
Результат System.Collections.Generic
        public LL1AltBlock(OutputModelFactory factory, GrammarAST blkAST, IList<CodeBlockForAlt> alts)
            : base(factory, blkAST, alts)
        {
            this.decision = ((DecisionState)blkAST.atnState).decision;

            /* Lookahead for each alt 1..n */
            IntervalSet[] altLookSets = factory.GetGrammar().decisionLOOK[decision];
            altLook = GetAltLookaheadAsStringLists(altLookSets);

            IntervalSet expecting = IntervalSet.Or(altLookSets); // combine alt sets
            this.error = GetThrowNoViableAlt(factory, blkAST, expecting);
        }
    }
LL1AltBlock