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