Exemplo n.º 1
0
        public bool VisitExprInt16Literal(ExprInt16Literal expr, TCtx arg)
        {
            var res = this.Visit(expr, "Int16Literal", arg, out var argOut);

            this.VisitPlainProperty("Value", expr.Value, argOut);
            this._visitor.EndVisitExpr(expr, arg);
            return(res);
        }
Exemplo n.º 2
0
        public bool VisitExprInt16Literal(ExprInt16Literal int16Literal, IExpr?parent)
        {
            if (int16Literal.Value.HasValue)
            {
                this.Builder.Append(int16Literal.Value.Value);
            }
            else
            {
                this.AppendNull();
            }

            return(true);
        }
Exemplo n.º 3
0
 public static ExprInt16Literal WithValue(this ExprInt16Literal original, Int16?newValue)
 => new ExprInt16Literal(value: newValue);
Exemplo n.º 4
0
 public TRes VisitExprInt16Literal(ExprInt16Literal int16Literal, ExprValueTypeAnalyzerCtx <TRes, TCtx> ctx)
 {
     return(ctx.ValueVisitor.VisitInt16(ctx.Ctx, !int16Literal.Value.HasValue));
 }