refType method

RefTypeContext refType()

Implementation

RefTypeContext refType() {
  dynamic _localctx = RefTypeContext(context, state);
  enterRule(_localctx, 46, RULE_refType);
  try {
    state = 211;
    errorHandler.sync(this);
    switch (tokenStream.LA(1)!) {
    case TOKEN_T__34:
      enterOuterAlt(_localctx, 1);
      state = 207;
      match(TOKEN_T__34);
      state = 208;
      funcType();
      break;
    case TOKEN_T__35:
      enterOuterAlt(_localctx, 2);
      state = 209;
      match(TOKEN_T__35);
      state = 210;
      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;
}