public bool VisitExprBoolLiteral(ExprBoolLiteral expr, TCtx arg) { var res = this.Visit(expr, "BoolLiteral", arg, out var argOut); this.VisitPlainProperty("Value", expr.Value, argOut); this._visitor.EndVisitExpr(expr, arg); return(res); }
public override bool VisitExprBoolLiteral(ExprBoolLiteral boolLiteral, IExpr?parent) { if (boolLiteral.Value.HasValue) { this.Builder.Append(boolLiteral.Value.Value ? "true" : "false"); } else { this.AppendNull(); } return(true); }
public static ExprBoolLiteral WithValue(this ExprBoolLiteral original, Boolean?newValue) => new ExprBoolLiteral(value: newValue);
public abstract bool VisitExprBoolLiteral(ExprBoolLiteral boolLiteral, IExpr?parent);
public TRes VisitExprBoolLiteral(ExprBoolLiteral boolLiteral, ExprValueTypeAnalyzerCtx <TRes, TCtx> ctx) { return(ctx.ValueVisitor.VisitBool(ctx.Ctx, !boolLiteral.Value.HasValue)); }