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