altSet property

Set<int>? altSet

Get the set of all alts mentioned by all ATN configurations in this DFA state.

Implementation

Set<int>? get altSet {
  final alts = <int>{};

  for (var c in configs) {
    alts.add(c.alt);
  }

  if (alts.isEmpty) return null;
  return alts;
}