public bool VisitExprDoubleLiteral(ExprDoubleLiteral expr, TCtx arg) { var res = this.Visit(expr, "DoubleLiteral", arg, out var argOut); this.VisitPlainProperty("Value", expr.Value, argOut); this._visitor.EndVisitExpr(expr, arg); return(res); }
public bool VisitExprDoubleLiteral(ExprDoubleLiteral doubleLiteral, IExpr?parent) { if (doubleLiteral.Value.HasValue) { this.Builder.Append(doubleLiteral.Value.Value.ToString(CultureInfo.InvariantCulture)); } else { this.AppendNull(); } return(true); }
public static ExprDoubleLiteral WithValue(this ExprDoubleLiteral original, Double?newValue) => new ExprDoubleLiteral(value: newValue);
public TRes VisitExprDoubleLiteral(ExprDoubleLiteral doubleLiteral, ExprValueTypeAnalyzerCtx <TRes, TCtx> ctx) { return(ctx.ValueVisitor.VisitDouble(ctx.Ctx, !doubleLiteral.Value.HasValue)); }