mapField method
Implementation
MapFieldContext mapField() {
dynamic _localctx = MapFieldContext(context, state);
enterRule(_localctx, 26, RULE_mapField);
int _la;
try {
enterOuterAlt(_localctx, 1);
state = 232;
match(TOKEN_MAP);
state = 233;
match(TOKEN_LT);
state = 234;
keyType();
state = 235;
match(TOKEN_COMMA);
state = 236;
type_();
state = 237;
match(TOKEN_GT);
state = 238;
mapName();
state = 239;
match(TOKEN_EQ);
state = 240;
fieldNumber();
state = 245;
errorHandler.sync(this);
_la = tokenStream.LA(1)!;
if (_la == TOKEN_LB) {
state = 241;
match(TOKEN_LB);
state = 242;
fieldOptions();
state = 243;
match(TOKEN_RB);
}
state = 247;
match(TOKEN_SEMI);
} on RecognitionException catch (re) {
_localctx.exception = re;
errorHandler.reportError(this, re);
errorHandler.recover(this, re);
} finally {
exitRule();
}
return _localctx;
}