Example #1
0
        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);
        }
Example #2
0
        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);
        }
Example #3
0
 public static ExprValueRow WithItems(this ExprValueRow original, IReadOnlyList <ExprValue> newItems)
 => new ExprValueRow(items: newItems);