allConfigsInRuleStopStates static method
Checks if all configurations in configs
are in a
RuleStopState. Configurations meeting this condition have reached
the end of the decision rule (local context) or end of start rule (full
context).
@param configs the configuration set to test
@return true
if all configurations in configs
are in a
RuleStopState, otherwise false
Implementation
static bool allConfigsInRuleStopStates(ATNConfigSet configs) {
for (var config in configs) {
if (config.state is! RuleStopState) {
return false;
}
}
return true;
}