6 overrides of Discriminator
Microsoft.CodeAnalysis (6)
ConstantValueSpecialized.cs (6)
34
public override ConstantValueTypeDiscriminator
Discriminator
75
public override ConstantValueTypeDiscriminator
Discriminator
159
public override ConstantValueTypeDiscriminator
Discriminator
238
public override ConstantValueTypeDiscriminator
Discriminator
279
public override ConstantValueTypeDiscriminator
Discriminator
322
public override ConstantValueTypeDiscriminator
Discriminator
44 references to Discriminator
Microsoft.CodeAnalysis (44)
CodeGen\ILBuilderEmit.cs (1)
568
ConstantValueTypeDiscriminator discriminator = value.
Discriminator
;
CodeGen\SwitchIntegralJumpTableEmitter.cs (1)
476
switch (value.
Discriminator
)
CodeGen\SwitchIntegralJumpTableEmitter.SwitchBucket.cs (4)
184
Debug.Assert(endConstant.
Discriminator
== startConstant.
Discriminator
);
207
if (startConstant.
Discriminator
== ConstantValueTypeDiscriminator.Int64)
212
else if (startConstant.
Discriminator
== ConstantValueTypeDiscriminator.UInt64)
ConstantValue.cs (25)
464
return
Discriminator
switch
483
ConstantValueTypeDiscriminator.Null or ConstantValueTypeDiscriminator.Bad => throw ExceptionUtilities.UnexpectedValue(
Discriminator
),
484
_ => throw ExceptionUtilities.UnexpectedValue(
Discriminator
)
517
switch (this.
Discriminator
)
538
default: throw ExceptionUtilities.UnexpectedValue(this.
Discriminator
);
568
return IsIntegralType(this.
Discriminator
);
576
switch (this.
Discriminator
)
604
switch (this.
Discriminator
)
647
return IsUnsignedIntegralType(this.
Discriminator
);
660
return this.
Discriminator
== ConstantValueTypeDiscriminator.Boolean;
673
return this.
Discriminator
== ConstantValueTypeDiscriminator.Char;
687
return this.
Discriminator
== ConstantValueTypeDiscriminator.String;
700
return this.
Discriminator
== ConstantValueTypeDiscriminator.Decimal;
713
return this.
Discriminator
== ConstantValueTypeDiscriminator.DateTime;
727
return this.
Discriminator
== ConstantValueTypeDiscriminator.Double ||
728
this.
Discriminator
== ConstantValueTypeDiscriminator.Single;
736
return this.
Discriminator
== ConstantValueTypeDiscriminator.Bad;
758
switch (this.
Discriminator
)
805
default: throw ExceptionUtilities.UnexpectedValue(this.
Discriminator
);
812
return String.Format("{0}({1}: {2})", this.GetType().Name, valueToDisplay, this.
Discriminator
);
817
return
Discriminator
switch
833
_ => throw ExceptionUtilities.UnexpectedValue(
Discriminator
)
876
return this.
Discriminator
== other.
Discriminator
;
901
return ((int)this.
Discriminator
).GetHashCode();
ConstantValueSpecialized.cs (4)
466
return this.Discriminator == other.
Discriminator
&& other.DecimalValue == 0m;
489
return this.Discriminator == other.
Discriminator
&& other.DoubleValue == 0;
512
return this.Discriminator == other.
Discriminator
&& other.SingleValue == 0;
682
return this.Discriminator == other.
Discriminator
&& other.DecimalValue == 1m;
CryptographicHashProvider.cs (2)
242
switch (constant.
Discriminator
)
270
throw ExceptionUtilities.UnexpectedValue(constant.
Discriminator
);
EnumConstantHelper.cs (2)
28
switch (constantValue.
Discriminator
)
111
throw ExceptionUtilities.UnexpectedValue(constantValue.
Discriminator
);
Operations\ControlFlowGraphBuilder.cs (1)
5089
Debug.Assert(value.
Discriminator
!= ConstantValueTypeDiscriminator.Bad);
SwitchConstantValueHelper.cs (4)
19
switch (constant.
Discriminator
)
72
switch (first.
Discriminator
)
93
throw ExceptionUtilities.UnexpectedValue(first.
Discriminator
);
135
switch (constant.
Discriminator
)