protected int getAltThatFinishedDecisionEntryRule(ATNConfigSet configSet)
{
IntervalSet alts = new IntervalSet();
foreach (ATNConfig c in configSet.configs)
{
if (c.OuterContextDepth > 0 || (c.state is RuleStopState && c.context.HasEmptyPath))
{
alts.Add(c.alt);
}
}
if (alts.Count == 0) return ATN.INVALID_ALT_NUMBER;
return alts.MinElement;
}