numberType method
Implementation
NumberTypeContext numberType() {
dynamic _localctx = NumberTypeContext(context, state);
enterRule(_localctx, 10, RULE_numberType);
try {
state = 77;
errorHandler.sync(this);
switch (tokenStream.LA(1)!) {
case TOKEN_T__1:
case TOKEN_T__2:
case TOKEN_T__3:
case TOKEN_T__4:
case TOKEN_T__5:
enterOuterAlt(_localctx, 1);
state = 74;
natType();
break;
case TOKEN_T__6:
case TOKEN_T__7:
case TOKEN_T__8:
case TOKEN_T__9:
case TOKEN_T__10:
enterOuterAlt(_localctx, 2);
state = 75;
intType();
break;
case TOKEN_T__11:
case TOKEN_T__12:
enterOuterAlt(_localctx, 3);
state = 76;
floatType();
break;
default:
throw NoViableAltException(this);
}
} on RecognitionException catch (re) {
_localctx.exception = re;
errorHandler.reportError(this, re);
errorHandler.recover(this, re);
} finally {
exitRule();
}
return _localctx;
}