enumDef method

EnumDefContext enumDef()

Implementation

EnumDefContext enumDef() {
  dynamic _localctx = EnumDefContext(context, state);
  enterRule(_localctx, 42, RULE_enumDef);
  int _la;
  try {
    enterOuterAlt(_localctx, 1);
    state = 309;
    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 = 306;
      comment();
      state = 311;
      errorHandler.sync(this);
      _la = tokenStream.LA(1)!;
    }
    state = 312;
    match(TOKEN_ENUM);
    state = 313;
    enumName();
    state = 314;
    enumBody();
  } on RecognitionException catch (re) {
    _localctx.exception = re;
    errorHandler.reportError(this, re);
    errorHandler.recover(this, re);
  } finally {
    exitRule();
  }
  return _localctx;
}