public bool VisitExprByteArrayLiteral(ExprByteArrayLiteral expr, TCtx arg) { var res = this.Visit(expr, "ByteArrayLiteral", arg, out var argOut); this.VisitPlainProperty("Value", expr.Value, argOut); this._visitor.EndVisitExpr(expr, arg); return(res); }
public bool VisitExprByteArrayLiteral(ExprByteArrayLiteral byteArrayLiteral, IExpr?parent) { if (byteArrayLiteral.Value == null || byteArrayLiteral.Value.Count < 1) { this.AppendNull(); } else { this.AppendByteArrayLiteralPrefix(); for (int i = 0; i < byteArrayLiteral.Value.Count; i++) { this.Builder.AppendFormat("{0:x2}", byteArrayLiteral.Value[i]); } this.AppendByteArrayLiteralSuffix(); } return(true); }
public static ExprByteArrayLiteral WithValue(this ExprByteArrayLiteral original, IReadOnlyList <Byte>?newValue) => new ExprByteArrayLiteral(value: newValue);
public TRes VisitExprByteArrayLiteral(ExprByteArrayLiteral byteArrayLiteral, ExprValueTypeAnalyzerCtx <TRes, TCtx> ctx) { return(ctx.ValueVisitor.VisitByteArray(ctx.Ctx, byteArrayLiteral.Value == null, byteArrayLiteral.Value?.Count, false)); }