messageElement method

MessageElementContext messageElement()

Implementation

MessageElementContext messageElement() {
  dynamic _localctx = MessageElementContext(context, state);
  enterRule(_localctx, 58, RULE_messageElement);
  try {
    int _alt;
    enterOuterAlt(_localctx, 1);
    state = 384;
    errorHandler.sync(this);
    _alt = interpreter!.adaptivePredict(tokenStream, 33, context);
    while (_alt != 2 && _alt != ATN.INVALID_ALT_NUMBER) {
      if (_alt == 1) {
        state = 381;
        comment();
      }
      state = 386;
      errorHandler.sync(this);
      _alt = interpreter!.adaptivePredict(tokenStream, 33, context);
    }
    state = 396;
    errorHandler.sync(this);
    switch (interpreter!.adaptivePredict(tokenStream, 34, context)) {
    case 1:
      state = 387;
      field();
      break;
    case 2:
      state = 388;
      enumDef();
      break;
    case 3:
      state = 389;
      messageDef();
      break;
    case 4:
      state = 390;
      optionStatement();
      break;
    case 5:
      state = 391;
      oneof();
      break;
    case 6:
      state = 392;
      mapField();
      break;
    case 7:
      state = 393;
      reserved();
      break;
    case 8:
      state = 394;
      emptyStatement_();
      break;
    case 9:
      state = 395;
      comment();
      break;
    }
  } on RecognitionException catch (re) {
    _localctx.exception = re;
    errorHandler.reportError(this, re);
    errorHandler.recover(this, re);
  } finally {
    exitRule();
  }
  return _localctx;
}