public bool VisitExprInt32Literal(ExprInt32Literal expr, TCtx arg) { var res = this.Visit(expr, "Int32Literal", arg, out var argOut); this.VisitPlainProperty("Value", expr.Value, argOut); this._visitor.EndVisitExpr(expr, arg); return(res); }
//Value public bool VisitExprInt32Literal(ExprInt32Literal exprInt32Literal, IExpr?parent) { if (exprInt32Literal.Value == null) { this.AppendNull(); return(true); } this.Builder.Append(exprInt32Literal.Value.Value); return(true); }
public static ExprOffsetFetch WithOffset(this ExprOffsetFetch original, ExprInt32Literal newOffset) => new ExprOffsetFetch(offset: newOffset, fetch: original.Fetch);
public static ExprInt32Literal WithValue(this ExprInt32Literal original, Int32?newValue) => new ExprInt32Literal(value: newValue);
public ExprOffsetFetch(ExprInt32Literal offset, ExprInt32Literal?fetch) { this.Offset = offset; this.Fetch = fetch; }
public TRes VisitExprInt32Literal(ExprInt32Literal exprInt32Literal, ExprValueTypeAnalyzerCtx <TRes, TCtx> ctx) { return(ctx.ValueVisitor.VisitInt32(ctx.Ctx, !exprInt32Literal.Value.HasValue)); }