1 write to Val
Microsoft.CSharp (1)
Microsoft\CSharp\RuntimeBinder\Semantics\Tree\Constant.cs (1)
15
Val
= value;
38 references to Val
Microsoft.CSharp (38)
Microsoft\CSharp\RuntimeBinder\ExpressionTreeCallRewriter.cs (1)
574
bIsLifted = isLifted.
Val
.Int32Val == 1;
Microsoft\CSharp\RuntimeBinder\Semantics\Conversion.cs (12)
467
((ExprConstant)exprConst).
Val
.DecimalVal.ToString(CultureInfo.InvariantCulture), dest);
498
value = ((ExprConstant)exprConst).
Val
.DoubleVal.ToString(CultureInfo.InvariantCulture);
1177
valueFlt = constSrc.
Val
.DoubleVal;
1395
result = Convert.ToDecimal(src.
Val
.Int32Val);
1400
result = Convert.ToDecimal(src.
Val
.UInt32Val);
1403
result = Convert.ToDecimal((float)src.
Val
.DoubleVal);
1406
result = Convert.ToDecimal(src.
Val
.DoubleVal);
1409
result = Convert.ToDecimal((ulong)src.
Val
.Int64Val);
1412
result = Convert.ToDecimal(src.
Val
.Int64Val);
1434
decTrunc = decimal.Truncate(src.
Val
.DecimalVal);
1463
cv = ConstVal.Get(Convert.ToSingle(src.
Val
.DecimalVal));
1466
cv = ConstVal.Get(Convert.ToDouble(src.
Val
.DecimalVal));
Microsoft\CSharp\RuntimeBinder\Semantics\ExpressionBinder.cs (3)
369
(!exprSrc.Type.IsPredefType(PredefinedType.PT_STRING) || constant.
Val
.IsNullRef))
371
ExprConstant expr = ExprFactory.CreateConstant(typeDest, constant.
Val
);
1441
double dvalue = exprSrc.
Val
.DoubleVal;
Microsoft\CSharp\RuntimeBinder\Semantics\EXPRExtensions.cs (1)
64
=> expr is ExprConstant constant && expr.Type.FundamentalType == FUNDTYPE.FT_REF && constant.
Val
.IsNullRef;
Microsoft\CSharp\RuntimeBinder\Semantics\Operators.cs (1)
1926
return ExprFactory.CreateConstant(typeBool, ConstVal.Get(((ExprConstant)argConst).
Val
.Int32Val == 0));
Microsoft\CSharp\RuntimeBinder\Semantics\Tree\Constant.cs (20)
20
public bool IsZero =>
Val
.IsZero(Type.ConstValKind);
24
public ulong UInt64Value =>
Val
.UInt64Val;
34
return
Val
.Int64Val;
37
return
Val
.UInt32Val;
44
return
Val
.Int32Val;
61
TypeCode.Boolean =>
Val
.BooleanVal,
62
TypeCode.SByte =>
Val
.SByteVal,
63
TypeCode.Byte =>
Val
.ByteVal,
64
TypeCode.Int16 =>
Val
.Int16Val,
65
TypeCode.UInt16 =>
Val
.UInt16Val,
66
TypeCode.Int32 =>
Val
.Int32Val,
67
TypeCode.UInt32 =>
Val
.UInt32Val,
68
TypeCode.Int64 =>
Val
.Int64Val,
69
TypeCode.UInt64 =>
Val
.UInt64Val,
70
TypeCode.Single =>
Val
.SingleVal,
71
TypeCode.Double =>
Val
.DoubleVal,
72
TypeCode.Decimal =>
Val
.DecimalVal,
73
TypeCode.Char =>
Val
.CharVal,
74
TypeCode.String =>
Val
.StringVal,
75
_ =>
Val
.ObjectVal,