hasStateAssociatedWithOneAlt static method

bool hasStateAssociatedWithOneAlt(
  1. ATNConfigSet configs
)

Implementation

static bool hasStateAssociatedWithOneAlt(ATNConfigSet configs) {
  final x = getStateToAltMap(configs);
  for (var alts in x.values) {
    if (alts.cardinality == 1) return true;
  }
  return false;
}