8 references to ConstantResult
Microsoft.CodeAnalysis.Features (8)
ConvertIfToSwitch\AbstractConvertIfToSwitchCodeRefactoringProvider.Analyzer.cs (8)
253
private
ConstantResult
DetermineConstant(IBinaryOperation op)
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,
259
_ =>
ConstantResult
.None,
287
ConstantResult
.Left when op.LeftOperand.Syntax is TExpressionSyntax left
289
ConstantResult
.Right when op.RightOperand.Syntax is TExpressionSyntax right
350
ConstantResult
.Left when op.LeftOperand.Syntax is TExpressionSyntax left
352
ConstantResult
.Right when op.RightOperand.Syntax is TExpressionSyntax right