public bool VisitExprValueRow(ExprValueRow expr, TCtx arg) { var res = this.Visit(expr, "ValueRow", arg, out var argOut) && this.Accept("Items", expr.Items, argOut); this._visitor.EndVisitExpr(expr, arg); return(res); }
public bool VisitExprValueRow(ExprValueRow valueRow, IExpr?parent) { if (valueRow.Items == null || valueRow.Items.Count < 1) { throw new SqExpressException("Row value should have at least one column"); } this.AcceptListComaSeparatedPar('(', valueRow.Items, ')', valueRow); return(true); }
public static ExprValueRow WithItems(this ExprValueRow original, IReadOnlyList <ExprValue> newItems) => new ExprValueRow(items: newItems);