optField method

OptFieldContext optField()

Implementation

OptFieldContext optField() {
  dynamic _localctx = OptFieldContext(context, state);
  enterRule(_localctx, 24, RULE_optField);
  int _la;
  try {
    enterOuterAlt(_localctx, 1);
    state = 212;
    errorHandler.sync(this);
    _la = tokenStream.LA(1)!;
    if (_la == TOKEN_QUESTIONMARK) {
      state = 211;
      _localctx.opt = match(TOKEN_QUESTIONMARK);
    }

    state = 214;
    match(TOKEN_IDENTIFIER);
  } on RecognitionException catch (re) {
    _localctx.exception = re;
    errorHandler.reportError(this, re);
    errorHandler.recover(this, re);
  } finally {
    exitRule();
  }
  return _localctx;
}