31 references to ConstValKind
Microsoft.CSharp (31)
Microsoft\CSharp\RuntimeBinder\Semantics\ConstVal.cs (10)
70public bool IsZero(ConstValKind kind) => 73ConstValKind.Decimal => DecimalVal == 0, 74ConstValKind.String => false, 109public static ConstVal GetDefaultValue(ConstValKind kind) => 112ConstValKind.Int => new ConstVal(s_zeroInt32), 113ConstValKind.Double => new ConstVal(0.0), 114ConstValKind.Long => new ConstVal(0L), 115ConstValKind.Decimal => new ConstVal(0M), 116ConstValKind.Float => new ConstVal(0F), 117ConstValKind.Boolean => new ConstVal(s_false),
Microsoft\CSharp\RuntimeBinder\Semantics\Types\AggregateType.cs (11)
364public override ConstValKind ConstValKind 370return ConstValKind.IntPtr; 377return ConstValKind.Long; 389? ConstValKind.Long 390: ConstValKind.Decimal; 394? ConstValKind.String 395: ConstValKind.IntPtr; 398return ConstValKind.Float; 401return ConstValKind.Double; 404return ConstValKind.Boolean; 407return ConstValKind.Int;
Microsoft\CSharp\RuntimeBinder\Semantics\Types\ArrayType.cs (2)
63public override ConstValKind ConstValKind => ConstValKind.IntPtr;
Microsoft\CSharp\RuntimeBinder\Semantics\Types\NullableType.cs (2)
59public override ConstValKind ConstValKind 64return ConstValKind.Decimal; // Equivalent to previous code, so least change for this unreachable branch.
Microsoft\CSharp\RuntimeBinder\Semantics\Types\NullType.cs (2)
23public override ConstValKind ConstValKind => ConstValKind.IntPtr;
Microsoft\CSharp\RuntimeBinder\Semantics\Types\PointerType.cs (2)
33public override ConstValKind ConstValKind 38return ConstValKind.IntPtr;
Microsoft\CSharp\RuntimeBinder\Semantics\Types\Type.cs (2)
39public virtual ConstValKind ConstValKind => ConstValKind.Int;