2 references to CheckConstantType
Microsoft.CodeAnalysis.Features (2)
ConvertIfToSwitch\AbstractConvertIfToSwitchCodeRefactoringProvider.Analyzer.cs (2)
257
var (e, v) when IsConstant(v) && CheckTargetExpression(e) &&
CheckConstantType
(v) => ConstantResult.Right,
258
var (v, e) when IsConstant(v) && CheckTargetExpression(e) &&
CheckConstantType
(v) => ConstantResult.Left,