enumField method

EnumFieldContext enumField()

Implementation

EnumFieldContext enumField() {
  dynamic _localctx = EnumFieldContext(context, state);
  enterRule(_localctx, 48, RULE_enumField);
  int _la;
  try {
    enterOuterAlt(_localctx, 1);
    state = 333;
    errorHandler.sync(this);
    _la = tokenStream.LA(1)!;
    while ((((_la) & ~0x3f) == 0 && ((BigInt.one << _la) & ((BigInt.one << TOKEN_DOC_LINE_COMMENT) | (BigInt.one << TOKEN_LINE_COMMENT) | (BigInt.one << TOKEN_DOC_MULTI_COMMENT) | (BigInt.one << TOKEN_MULTI_COMMENT))) != BigInt.zero)) {
      state = 330;
      comment();
      state = 335;
      errorHandler.sync(this);
      _la = tokenStream.LA(1)!;
    }
    state = 336;
    ident();
    state = 337;
    match(TOKEN_EQ);
    state = 339;
    errorHandler.sync(this);
    _la = tokenStream.LA(1)!;
    if (_la == TOKEN_MINUS) {
      state = 338;
      match(TOKEN_MINUS);
    }

    state = 341;
    intLit();
    state = 343;
    errorHandler.sync(this);
    _la = tokenStream.LA(1)!;
    if (_la == TOKEN_LB) {
      state = 342;
      enumValueOptions();
    }

    state = 345;
    match(TOKEN_SEMI);
  } on RecognitionException catch (re) {
    _localctx.exception = re;
    errorHandler.reportError(this, re);
    errorHandler.recover(this, re);
  } finally {
    exitRule();
  }
  return _localctx;
}