value method
Implementation
ValueContext value() {
dynamic _localctx = ValueContext(context, state);
enterRule(_localctx, 6, RULE_value);
try {
state = 43;
errorHandler.sync(this);
switch (tokenStream.LA(1)!) {
case TOKEN_INT:
enterOuterAlt(_localctx, 1);
state = 39;
match(TOKEN_INT);
break;
case TOKEN_DOUBLE:
enterOuterAlt(_localctx, 2);
state = 40;
match(TOKEN_DOUBLE);
break;
case TOKEN_BOOLEAN:
enterOuterAlt(_localctx, 3);
state = 41;
match(TOKEN_BOOLEAN);
break;
case TOKEN_KEY:
case TOKEN_SINGLE_QUOTE_STRING:
case TOKEN_DOUBLE_QUOTE_STRING:
case TOKEN_NO_QUOTE_STRING:
enterOuterAlt(_localctx, 4);
state = 42;
string();
break;
default:
throw NoViableAltException(this);
}
} on RecognitionException catch (re) {
_localctx.exception = re;
errorHandler.reportError(this, re);
errorHandler.recover(this, re);
} finally {
exitRule();
}
return _localctx;
}