primType method

PrimTypeContext primType()

Implementation

PrimTypeContext primType() {
  dynamic _localctx = PrimTypeContext(context, state);
  enterRule(_localctx, 22, RULE_primType);
  try {
    state = 97;
    errorHandler.sync(this);
    switch (tokenStream.LA(1)!) {
    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:
      enterOuterAlt(_localctx, 1);
      state = 89;
      numberType();
      break;
    case TOKEN_T__14:
      enterOuterAlt(_localctx, 2);
      state = 90;
      boolType();
      break;
    case TOKEN_T__15:
      enterOuterAlt(_localctx, 3);
      state = 91;
      textType();
      break;
    case TOKEN_T__13:
      enterOuterAlt(_localctx, 4);
      state = 92;
      blobType();
      break;
    case TOKEN_T__0:
      enterOuterAlt(_localctx, 5);
      state = 93;
      null_();
      break;
    case TOKEN_T__16:
      enterOuterAlt(_localctx, 6);
      state = 94;
      principalType();
      break;
    case TOKEN_T__17:
      enterOuterAlt(_localctx, 7);
      state = 95;
      reservedType();
      break;
    case TOKEN_T__18:
      enterOuterAlt(_localctx, 8);
      state = 96;
      emptyType();
      break;
    default:
      throw NoViableAltException(this);
    }
  } on RecognitionException catch (re) {
    _localctx.exception = re;
    errorHandler.reportError(this, re);
    errorHandler.recover(this, re);
  } finally {
    exitRule();
  }
  return _localctx;
}