oneof method

OneofContext oneof()

Implementation

OneofContext oneof() {
  dynamic _localctx = OneofContext(context, state);
  enterRule(_localctx, 22, RULE_oneof);
  int _la;
  try {
    enterOuterAlt(_localctx, 1);
    state = 207;
    match(TOKEN_ONEOF);
    state = 208;
    oneofName();
    state = 209;
    match(TOKEN_LC);
    state = 215;
    errorHandler.sync(this);
    _la = tokenStream.LA(1)!;
    while ((((_la) & ~0x3f) == 0 && ((BigInt.one << _la) & ((BigInt.one << TOKEN_SYNTAX) | (BigInt.one << TOKEN_IMPORT) | (BigInt.one << TOKEN_WEAK) | (BigInt.one << TOKEN_PUBLIC) | (BigInt.one << TOKEN_PACKAGE) | (BigInt.one << TOKEN_OPTION) | (BigInt.one << TOKEN_REPEATED) | (BigInt.one << TOKEN_ONEOF) | (BigInt.one << TOKEN_MAP) | (BigInt.one << TOKEN_INT32) | (BigInt.one << TOKEN_INT64) | (BigInt.one << TOKEN_UINT32) | (BigInt.one << TOKEN_UINT64) | (BigInt.one << TOKEN_SINT32) | (BigInt.one << TOKEN_SINT64) | (BigInt.one << TOKEN_FIXED32) | (BigInt.one << TOKEN_FIXED64) | (BigInt.one << TOKEN_SFIXED32) | (BigInt.one << TOKEN_SFIXED64) | (BigInt.one << TOKEN_BOOL) | (BigInt.one << TOKEN_STRING) | (BigInt.one << TOKEN_DOUBLE) | (BigInt.one << TOKEN_FLOAT) | (BigInt.one << TOKEN_BYTES) | (BigInt.one << TOKEN_RESERVED) | (BigInt.one << TOKEN_TO) | (BigInt.one << TOKEN_MAX) | (BigInt.one << TOKEN_ENUM) | (BigInt.one << TOKEN_MESSAGE) | (BigInt.one << TOKEN_SERVICE) | (BigInt.one << TOKEN_RPC) | (BigInt.one << TOKEN_STREAM) | (BigInt.one << TOKEN_RETURNS) | (BigInt.one << TOKEN_SEMI) | (BigInt.one << TOKEN_DOT) | (BigInt.one << TOKEN_BOOL_LIT) | (BigInt.one << TOKEN_IDENTIFIER))) != BigInt.zero)) {
      state = 213;
      errorHandler.sync(this);
      switch (interpreter!.adaptivePredict(tokenStream, 13, context)) {
      case 1:
        state = 210;
        optionStatement();
        break;
      case 2:
        state = 211;
        oneofField();
        break;
      case 3:
        state = 212;
        emptyStatement_();
        break;
      }
      state = 217;
      errorHandler.sync(this);
      _la = tokenStream.LA(1)!;
    }
    state = 218;
    match(TOKEN_RC);
  } on RecognitionException catch (re) {
    _localctx.exception = re;
    errorHandler.reportError(this, re);
    errorHandler.recover(this, re);
  } finally {
    exitRule();
  }
  return _localctx;
}