14 references to IsValidSwitchCaseLabelConstant
Microsoft.CodeAnalysis (9)
CodeGen\SwitchIntegralJumpTableEmitter.cs (4)
145
Debug.Assert(SwitchConstantValueHelper.
IsValidSwitchCaseLabelConstant
(firstConstant)
149
Debug.Assert(SwitchConstantValueHelper.
IsValidSwitchCaseLabelConstant
(secondConstant)
418
SwitchConstantValueHelper.
IsValidSwitchCaseLabelConstant
(constant));
433
SwitchConstantValueHelper.
IsValidSwitchCaseLabelConstant
(constant));
CodeGen\SwitchIntegralJumpTableEmitter.SwitchBucket.cs (1)
264
&& SwitchConstantValueHelper.
IsValidSwitchCaseLabelConstant
(constant)
SwitchConstantValueHelper.cs (4)
55
RoslynDebug.Assert(
IsValidSwitchCaseLabelConstant
(first));
56
RoslynDebug.Assert(
IsValidSwitchCaseLabelConstant
(second));
109
if (!
IsValidSwitchCaseLabelConstant
(firstConstant)
110
|| !
IsValidSwitchCaseLabelConstant
(secondConstant))
Microsoft.CodeAnalysis.VisualBasic (5)
Binding\Binder_SelectCase.vb (4)
597
Not SwitchConstantValueHelper.
IsValidSwitchCaseLabelConstant
(operand.ConstantValueOpt) Then
626
Not SwitchConstantValueHelper.
IsValidSwitchCaseLabelConstant
(lowerBound.ConstantValueOpt) OrElse
627
Not SwitchConstantValueHelper.
IsValidSwitchCaseLabelConstant
(upperBound.ConstantValueOpt) Then
644
Not SwitchConstantValueHelper.
IsValidSwitchCaseLabelConstant
(value.ConstantValueOpt) Then
CodeGen\EmitStatement.vb (1)
1020
Debug.Assert(SwitchConstantValueHelper.
IsValidSwitchCaseLabelConstant
(constant))