public bool VisitExprTypeByteArray(ExprTypeByteArray expr, TCtx arg) { var res = this.Visit(expr, "TypeByteArray", arg, out var argOut); this.VisitPlainProperty("Size", expr.Size, argOut); this._visitor.EndVisitExpr(expr, arg); return(res); }
public override bool VisitExprTypeByteArray(ExprTypeByteArray exprTypeByte, IExpr?arg) { this.Builder.Append("varbinary("); if (exprTypeByte.Size.HasValue) { this.Builder.Append(exprTypeByte.Size.Value.ToString()); this.Builder.Append(')'); } else { this.Builder.Append("MAX)"); } return(true); }
public static ExprTypeByteArray WithSize(this ExprTypeByteArray original, Int32?newSize) => new ExprTypeByteArray(size: newSize);
public abstract bool VisitExprTypeByteArray(ExprTypeByteArray exprTypeByte, IExpr?arg);
TRes IExprTypeVisitor <TRes, ExprValueTypeAnalyzerCtx <TRes, TCtx> > .VisitExprTypeByteArray(ExprTypeByteArray exprTypeByte, ExprValueTypeAnalyzerCtx <TRes, TCtx> ctx) { return(ctx.ValueVisitor.VisitByteArray(ctx.Ctx, null, exprTypeByte.Size, false)); }