value method

ValueContext value()

Implementation

ValueContext value() {
  dynamic _localctx = ValueContext(context, state);
  enterRule(_localctx, 8, RULE_value);
  try {
    state = 54;
    errorHandler.sync(this);
    switch (tokenStream.LA(1)!) {
    case TOKEN_STRING:
      enterOuterAlt(_localctx, 1);
      state = 47;
      match(TOKEN_STRING);
      break;
    case TOKEN_NUMBER:
      enterOuterAlt(_localctx, 2);
      state = 48;
      match(TOKEN_NUMBER);
      break;
    case TOKEN_T__0:
      enterOuterAlt(_localctx, 3);
      state = 49;
      obj();
      break;
    case TOKEN_T__4:
      enterOuterAlt(_localctx, 4);
      state = 50;
      arr();
      break;
    case TOKEN_T__6:
      enterOuterAlt(_localctx, 5);
      state = 51;
      match(TOKEN_T__6);
      break;
    case TOKEN_T__7:
      enterOuterAlt(_localctx, 6);
      state = 52;
      match(TOKEN_T__7);
      break;
    case TOKEN_T__8:
      enterOuterAlt(_localctx, 7);
      state = 53;
      match(TOKEN_T__8);
      break;
    default:
      throw NoViableAltException(this);
    }
  } on RecognitionException catch (re) {
    _localctx.exception = re;
    errorHandler.reportError(this, re);
    errorHandler.recover(this, re);
  } finally {
    exitRule();
  }
  return _localctx;
}