getAltThatFinishedDecisionEntryRule method
Implementation
int getAltThatFinishedDecisionEntryRule(ATNConfigSet configs) {
final alts = IntervalSet();
for (var c in configs) {
assert(c.context != null);
if (c.outerContextDepth > 0 ||
(c.state is RuleStopState && c.context!.hasEmptyPath())) {
alts.addOne(c.alt);
}
}
if (alts.length == 0) return ATN.INVALID_ALT_NUMBER;
return alts.minElement;
}