public override Choice GetEBNFBlock(GrammarAST ebnfRoot, IList<CodeBlockForAlt> alts)
{
if (!g.tool.force_atn)
{
int decision;
if (ebnfRoot.Type == ANTLRParser.POSITIVE_CLOSURE)
{
decision = ((PlusLoopbackState)ebnfRoot.atnState).decision;
}
else if (ebnfRoot.Type == ANTLRParser.CLOSURE)
{
decision = ((StarLoopEntryState)ebnfRoot.atnState).decision;
}
else
{
decision = ((DecisionState)ebnfRoot.atnState).decision;
}
if (AnalysisPipeline.Disjoint(g.decisionLOOK[decision]))
{
return GetLL1EBNFBlock(ebnfRoot, alts);
}
}
return GetComplexEBNFBlock(ebnfRoot, alts);
}