13 references to SwitchConstantValueHelper
Microsoft.CodeAnalysis (6)
CodeGen\SwitchIntegralJumpTableEmitter.cs (5)
145
Debug.Assert(
SwitchConstantValueHelper
.IsValidSwitchCaseLabelConstant(firstConstant)
149
Debug.Assert(
SwitchConstantValueHelper
.IsValidSwitchCaseLabelConstant(secondConstant)
152
return
SwitchConstantValueHelper
.CompareSwitchCaseLabelConstants(firstConstant, secondConstant);
418
SwitchConstantValueHelper
.IsValidSwitchCaseLabelConstant(constant));
433
SwitchConstantValueHelper
.IsValidSwitchCaseLabelConstant(constant));
CodeGen\SwitchIntegralJumpTableEmitter.SwitchBucket.cs (1)
264
&&
SwitchConstantValueHelper
.IsValidSwitchCaseLabelConstant(constant)
Microsoft.CodeAnalysis.CSharp (1)
Binder\SwitchBinder.cs (1)
93
var map = new Dictionary<object, SourceLabelSymbol>(labels.Length, new
SwitchConstantValueHelper
.SwitchLabelsComparer());
Microsoft.CodeAnalysis.VisualBasic (6)
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 (2)
980
Dim constantsSet = New HashSet(Of ConstantValue)(New
SwitchConstantValueHelper
.SwitchLabelsComparer())
1020
Debug.Assert(
SwitchConstantValueHelper
.IsValidSwitchCaseLabelConstant(constant))