messageDef method

MessageDefContext messageDef()

Implementation

MessageDefContext messageDef() {
  dynamic _localctx = MessageDefContext(context, state);
  enterRule(_localctx, 54, RULE_messageDef);
  int _la;
  try {
    enterOuterAlt(_localctx, 1);
    state = 365;
    errorHandler.sync(this);
    _la = tokenStream.LA(1)!;
    while ((((_la) & ~0x3f) == 0 && ((BigInt.one << _la) & ((BigInt.one << TOKEN_DOC_LINE_COMMENT) | (BigInt.one << TOKEN_LINE_COMMENT) | (BigInt.one << TOKEN_DOC_MULTI_COMMENT) | (BigInt.one << TOKEN_MULTI_COMMENT))) != BigInt.zero)) {
      state = 362;
      comment();
      state = 367;
      errorHandler.sync(this);
      _la = tokenStream.LA(1)!;
    }
    state = 368;
    match(TOKEN_MESSAGE);
    state = 369;
    messageName();
    state = 370;
    messageBody();
  } on RecognitionException catch (re) {
    _localctx.exception = re;
    errorHandler.reportError(this, re);
    errorHandler.recover(this, re);
  } finally {
    exitRule();
  }
  return _localctx;
}