idType method

IdTypeContext idType()

Implementation

IdTypeContext idType() {
  dynamic _localctx = IdTypeContext(context, state);
  enterRule(_localctx, 24, RULE_idType);
  try {
    state = 101;
    errorHandler.sync(this);
    switch (tokenStream.LA(1)!) {
    case TOKEN_IDENTIFIER:
      enterOuterAlt(_localctx, 1);
      state = 99;
      id();
      break;
    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:
      enterOuterAlt(_localctx, 2);
      state = 100;
      primType();
      break;
    default:
      throw NoViableAltException(this);
    }
  } on RecognitionException catch (re) {
    _localctx.exception = re;
    errorHandler.reportError(this, re);
    errorHandler.recover(this, re);
  } finally {
    exitRule();
  }
  return _localctx;
}