public bool VisitExprTypeDecimal(ExprTypeDecimal expr, TCtx arg) { var res = this.Visit(expr, "TypeDecimal", arg, out var argOut); this.VisitPlainProperty("PrecisionScale", expr.PrecisionScale, argOut); this._visitor.EndVisitExpr(expr, arg); return(res); }
public override bool VisitExprTypeDecimal(ExprTypeDecimal exprTypeDecimal, IExpr?parent) { this.Builder.Append("decimal"); if (exprTypeDecimal.PrecisionScale.HasValue) { this.Builder.Append('('); this.Builder.Append(exprTypeDecimal.PrecisionScale.Value.Precision); if (exprTypeDecimal.PrecisionScale.Value.Scale.HasValue) { this.Builder.Append(','); this.Builder.Append(exprTypeDecimal.PrecisionScale.Value.Scale.Value); } this.Builder.Append(')'); } return(true); }
public static ExprTypeDecimal WithPrecisionScale(this ExprTypeDecimal original, DecimalPrecisionScale?newPrecisionScale) => new ExprTypeDecimal(precisionScale: newPrecisionScale);
public abstract bool VisitExprTypeDecimal(ExprTypeDecimal exprTypeDecimal, IExpr?parent);
TRes IExprTypeVisitor <TRes, ExprValueTypeAnalyzerCtx <TRes, TCtx> > .VisitExprTypeDecimal(ExprTypeDecimal exprTypeDecimal, ExprValueTypeAnalyzerCtx <TRes, TCtx> ctx) { return(ctx.ValueVisitor.VisitDecimal(ctx.Ctx, null, exprTypeDecimal.PrecisionScale)); }