code: function getRule(recognizer, dfa) {
      const description = dfa.decision.toString();
      const ruleIndex = dfa.atnStartState.ruleIndex;
  
      const ruleNames = recognizer.ruleNames;
      if (ruleIndex < 0 || ruleIndex >= ruleNames.length) {
          return description;
      }
      const ruleName = ruleNames[ruleIndex] || '<unknown>';
      return description + " (" + ruleName + ")";
  }
docs: PRIVATE FUNCTIONS