field method
Implementation
FieldContext field() {
dynamic _localctx = FieldContext(context, state);
enterRule(_localctx, 14, RULE_field);
int _la;
try {
enterOuterAlt(_localctx, 1);
state = 175;
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 = 172;
comment();
state = 177;
errorHandler.sync(this);
_la = tokenStream.LA(1)!;
}
state = 179;
errorHandler.sync(this);
switch (interpreter!.adaptivePredict(tokenStream, 10, context)) {
case 1:
state = 178;
match(TOKEN_REPEATED);
break;
}
state = 181;
type_();
state = 182;
fieldName();
state = 183;
match(TOKEN_EQ);
state = 184;
fieldNumber();
state = 189;
errorHandler.sync(this);
_la = tokenStream.LA(1)!;
if (_la == TOKEN_LB) {
state = 185;
match(TOKEN_LB);
state = 186;
fieldOptions();
state = 187;
match(TOKEN_RB);
}
state = 191;
match(TOKEN_SEMI);
} on RecognitionException catch (re) {
_localctx.exception = re;
errorHandler.reportError(this, re);
errorHandler.recover(this, re);
} finally {
exitRule();
}
return _localctx;
}