methType method

MethTypeContext methType()

Implementation

MethTypeContext methType() {
  dynamic _localctx = MethTypeContext(context, state);
  enterRule(_localctx, 30, RULE_methType);
  try {
    state = 131;
    errorHandler.sync(this);
    switch (interpreter!.adaptivePredict(tokenStream, 4, context)) {
    case 1:
      enterOuterAlt(_localctx, 1);
      state = 111;
      idType();
      state = 112;
      match(TOKEN_T__22);
      state = 113;
      funcType();
      break;
    case 2:
      enterOuterAlt(_localctx, 2);
      state = 115;
      match(TOKEN_T__23);
      state = 116;
      idType();
      state = 117;
      match(TOKEN_T__23);
      state = 118;
      match(TOKEN_T__22);
      state = 119;
      funcType();
      break;
    case 3:
      enterOuterAlt(_localctx, 3);
      state = 121;
      idType();
      state = 122;
      match(TOKEN_T__22);
      state = 123;
      idType();
      break;
    case 4:
      enterOuterAlt(_localctx, 4);
      state = 125;
      match(TOKEN_T__23);
      state = 126;
      idType();
      state = 127;
      match(TOKEN_T__23);
      state = 128;
      match(TOKEN_T__22);
      state = 129;
      idType();
      break;
    }
  } on RecognitionException catch (re) {
    _localctx.exception = re;
    errorHandler.reportError(this, re);
    errorHandler.recover(this, re);
  } finally {
    exitRule();
  }
  return _localctx;
}