hasConfigInRuleStopState static method

bool hasConfigInRuleStopState(
  1. ATNConfigSet configs
)

Checks if any configuration in configs is 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 any configuration in configs is in a RuleStopState, otherwise false

Implementation

static bool hasConfigInRuleStopState(ATNConfigSet configs) {
  for (var c in configs) {
    if (c.state is RuleStopState) {
      return true;
    }
  }

  return false;
}