notifyListeners method

void notifyListeners(
  1. LexerNoViableAltException e
)

Implementation

void notifyListeners(LexerNoViableAltException e) {
  final text = _input.getText(Interval.of(tokenStartCharIndex, _input.index));
  final msg = "token recognition error at: '" + getErrorDisplay(text) + "'";

  final listener = errorListenerDispatch;
  listener.syntaxError(
    this,
    null,
    tokenStartLine,
    tokenStartCharPositionInLine,
    msg,
    e,
  );
}