示例#1
0
        public bool VisitExprByteLiteral(ExprByteLiteral expr, TCtx arg)
        {
            var res = this.Visit(expr, "ByteLiteral", arg, out var argOut);

            this.VisitPlainProperty("Value", expr.Value, argOut);
            this._visitor.EndVisitExpr(expr, arg);
            return(res);
        }
示例#2
0
        public bool VisitExprByteLiteral(ExprByteLiteral byteLiteral, IExpr?parent)
        {
            if (byteLiteral.Value.HasValue)
            {
                this.Builder.Append(byteLiteral.Value.Value);
            }
            else
            {
                this.AppendNull();
            }

            return(true);
        }
示例#3
0
 public static ExprByteLiteral WithValue(this ExprByteLiteral original, Byte?newValue)
 => new ExprByteLiteral(value: newValue);
 public TRes VisitExprByteLiteral(ExprByteLiteral byteLiteral, ExprValueTypeAnalyzerCtx <TRes, TCtx> ctx)
 {
     return(ctx.ValueVisitor.VisitByte(ctx.Ctx, !byteLiteral.Value.HasValue));
 }