refType method

RefTypeContext refType()

Implementation

RefTypeContext refType() {
  dynamic _localctx = RefTypeContext(context, state);
  enterRule(_localctx, 46, RULE_refType);
  try {
    state = 199;
    errorHandler.sync(this);
    switch (tokenStream.LA(1)!) {
    case TOKEN_T__35:
      enterOuterAlt(_localctx, 1);
      state = 195;
      match(TOKEN_T__35);
      state = 196;
      funcType();
      break;
    case TOKEN_T__36:
      enterOuterAlt(_localctx, 2);
      state = 197;
      match(TOKEN_T__36);
      state = 198;
      actorType();
      break;
    default:
      throw NoViableAltException(this);
    }
  } on RecognitionException catch (re) {
    _localctx.exception = re;
    errorHandler.reportError(this, re);
    errorHandler.recover(this, re);
  } finally {
    exitRule();
  }
  return _localctx;
}