reserved method
Implementation
ReservedContext reserved() {
dynamic _localctx = ReservedContext(context, state);
enterRule(_localctx, 32, RULE_reserved);
try {
enterOuterAlt(_localctx, 1);
state = 270;
match(TOKEN_RESERVED);
state = 273;
errorHandler.sync(this);
switch (tokenStream.LA(1)!) {
case TOKEN_INT_LIT:
state = 271;
ranges();
break;
case TOKEN_PROTO3_LIT_SINGLE:
case TOKEN_PROTO3_LIT_DOBULE:
case TOKEN_STR_LIT:
state = 272;
reservedFieldNames();
break;
default:
throw NoViableAltException(this);
}
state = 275;
match(TOKEN_SEMI);
} on RecognitionException catch (re) {
_localctx.exception = re;
errorHandler.reportError(this, re);
errorHandler.recover(this, re);
} finally {
exitRule();
}
return _localctx;
}