dataType method

DataTypeContext dataType()

Implementation

DataTypeContext dataType() {
  dynamic _localctx = DataTypeContext(context, state);
  enterRule(_localctx, 50, RULE_dataType);
  try {
    state = 222;
    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_T__26:
    case TOKEN_IDENTIFIER:
      enterOuterAlt(_localctx, 1);
      state = 216;
      idType();
      break;
    case TOKEN_T__25:
      enterOuterAlt(_localctx, 2);
      state = 217;
      vecType();
      break;
    case TOKEN_T__24:
      enterOuterAlt(_localctx, 3);
      state = 218;
      optType();
      break;
    case TOKEN_T__31:
      enterOuterAlt(_localctx, 4);
      state = 219;
      variantType();
      break;
    case TOKEN_T__27:
      enterOuterAlt(_localctx, 5);
      state = 220;
      recordType();
      break;
    case TOKEN_T__35:
    case TOKEN_T__36:
      enterOuterAlt(_localctx, 6);
      state = 221;
      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;
}