getUniqueAlt static method
Implementation
static int getUniqueAlt(ATNConfigSet configs) {
var alt = ATN.INVALID_ALT_NUMBER;
for (var c in configs) {
if (alt == ATN.INVALID_ALT_NUMBER) {
alt = c.alt; // found first alt
} else if (c.alt != alt) {
return ATN.INVALID_ALT_NUMBER;
}
}
return alt;
}