13 references to SwitchConstantValueHelper
Microsoft.CodeAnalysis (6)
CodeGen\SwitchIntegralJumpTableEmitter.cs (5)
145Debug.Assert(SwitchConstantValueHelper.IsValidSwitchCaseLabelConstant(firstConstant) 149Debug.Assert(SwitchConstantValueHelper.IsValidSwitchCaseLabelConstant(secondConstant) 152return SwitchConstantValueHelper.CompareSwitchCaseLabelConstants(firstConstant, secondConstant); 418SwitchConstantValueHelper.IsValidSwitchCaseLabelConstant(constant)); 433SwitchConstantValueHelper.IsValidSwitchCaseLabelConstant(constant));
CodeGen\SwitchIntegralJumpTableEmitter.SwitchBucket.cs (1)
264&& SwitchConstantValueHelper.IsValidSwitchCaseLabelConstant(constant)
Microsoft.CodeAnalysis.CSharp (1)
Binder\SwitchBinder.cs (1)
93var map = new Dictionary<object, SourceLabelSymbol>(labels.Length, new SwitchConstantValueHelper.SwitchLabelsComparer());
Microsoft.CodeAnalysis.VisualBasic (6)
Binding\Binder_SelectCase.vb (4)
597Not SwitchConstantValueHelper.IsValidSwitchCaseLabelConstant(operand.ConstantValueOpt) Then 626Not SwitchConstantValueHelper.IsValidSwitchCaseLabelConstant(lowerBound.ConstantValueOpt) OrElse 627Not SwitchConstantValueHelper.IsValidSwitchCaseLabelConstant(upperBound.ConstantValueOpt) Then 644Not SwitchConstantValueHelper.IsValidSwitchCaseLabelConstant(value.ConstantValueOpt) Then
CodeGen\EmitStatement.vb (2)
980Dim constantsSet = New HashSet(Of ConstantValue)(New SwitchConstantValueHelper.SwitchLabelsComparer()) 1020Debug.Assert(SwitchConstantValueHelper.IsValidSwitchCaseLabelConstant(constant))