enumBody method
Implementation
EnumBodyContext enumBody() {
dynamic _localctx = EnumBodyContext(context, state);
enterRule(_localctx, 44, RULE_enumBody);
int _la;
try {
enterOuterAlt(_localctx, 1);
state = 316;
match(TOKEN_LC);
state = 320;
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_BOOL_LIT) | (BigInt.one << TOKEN_IDENTIFIER) | (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 = 317;
enumElement();
state = 322;
errorHandler.sync(this);
_la = tokenStream.LA(1)!;
}
state = 323;
match(TOKEN_RC);
} on RecognitionException catch (re) {
_localctx.exception = re;
errorHandler.reportError(this, re);
errorHandler.recover(this, re);
} finally {
exitRule();
}
return _localctx;
}