methType method
Implementation
MethTypeContext methType() {
dynamic _localctx = MethTypeContext(context, state);
enterRule(_localctx, 30, RULE_methType);
try {
state = 119;
errorHandler.sync(this);
switch (interpreter!.adaptivePredict(tokenStream, 4, context)) {
case 1:
enterOuterAlt(_localctx, 1);
state = 111;
idType();
state = 112;
match(TOKEN_T__23);
state = 113;
funcType();
break;
case 2:
enterOuterAlt(_localctx, 2);
state = 115;
idType();
state = 116;
match(TOKEN_T__23);
state = 117;
idType();
break;
}
} on RecognitionException catch (re) {
_localctx.exception = re;
errorHandler.reportError(this, re);
errorHandler.recover(this, re);
} finally {
exitRule();
}
return _localctx;
}