exprList method

ExprListContext exprList()

Implementation

ExprListContext exprList() {
  dynamic _localctx = ExprListContext(context, state);
  enterRule(_localctx, 18, RULE_exprList);
  int _la;
  try {
    enterOuterAlt(_localctx, 1);
    state = 182;
    _localctx._expr = expr();
    _localctx.e.add(_localctx._expr);
    state = 187;
    errorHandler.sync(this);
    _la = tokenStream.LA(1)!;
    while (_la == TOKEN_COMMA) {
      state = 183;
      match(TOKEN_COMMA);
      state = 184;
      _localctx._expr = expr();
      _localctx.e.add(_localctx._expr);
      state = 189;
      errorHandler.sync(this);
      _la = tokenStream.LA(1)!;
    }
  } on RecognitionException catch (re) {
    _localctx.exception = re;
    errorHandler.reportError(this, re);
    errorHandler.recover(this, re);
  } finally {
    exitRule();
  }
  return _localctx;
}