expectedTokens property

IntervalSet? expectedTokens

Gets the set of input symbols which could potentially follow the previously matched symbol at the time this exception was thrown.

If the set of expected tokens is not known and could not be computed, this method returns null.

@return The set of token types that could potentially follow the current state in the ATN, or null if the information is not available.

Implementation

IntervalSet? get expectedTokens {
  if (recognizer != null) {
    return recognizer!.getATN().getExpectedTokens(offendingState, ctx);
  }
  return null;
}