dataType method

DataTypeContext dataType()

Implementation

DataTypeContext dataType() {
  dynamic _localctx = DataTypeContext(context, state);
  enterRule(_localctx, 50, RULE_dataType);
  try {
    state = 234;
    errorHandler.sync(this);
    switch (tokenStream.LA(1)!) {
    case TOKEN_T__0:
    case TOKEN_T__1:
    case TOKEN_T__2:
    case TOKEN_T__3:
    case TOKEN_T__4:
    case TOKEN_T__5:
    case TOKEN_T__6:
    case TOKEN_T__7:
    case TOKEN_T__8:
    case TOKEN_T__9:
    case TOKEN_T__10:
    case TOKEN_T__11:
    case TOKEN_T__12:
    case TOKEN_T__13:
    case TOKEN_T__14:
    case TOKEN_T__15:
    case TOKEN_T__16:
    case TOKEN_T__17:
    case TOKEN_T__18:
    case TOKEN_IDENTIFIER:
      enterOuterAlt(_localctx, 1);
      state = 228;
      idType();
      break;
    case TOKEN_T__25:
      enterOuterAlt(_localctx, 2);
      state = 229;
      vecType();
      break;
    case TOKEN_T__24:
      enterOuterAlt(_localctx, 3);
      state = 230;
      optType();
      break;
    case TOKEN_T__30:
      enterOuterAlt(_localctx, 4);
      state = 231;
      variantType();
      break;
    case TOKEN_T__26:
      enterOuterAlt(_localctx, 5);
      state = 232;
      recordType();
      break;
    case TOKEN_T__34:
    case TOKEN_T__35:
      enterOuterAlt(_localctx, 6);
      state = 233;
      refType();
      break;
    default:
      throw NoViableAltException(this);
    }
  } on RecognitionException catch (re) {
    _localctx.exception = re;
    errorHandler.reportError(this, re);
    errorHandler.recover(this, re);
  } finally {
    exitRule();
  }
  return _localctx;
}