11 references to Supports
Microsoft.CodeAnalysis.Features (11)
ConvertIfToSwitch\AbstractConvertIfToSwitchCodeRefactoringProvider.Analyzer.cs (8)
283
when
Supports
(Feature.RangePattern) && GetRangeBounds(op) is (TExpressionSyntax lower, TExpressionSyntax higher):
297
when
Supports
(Feature.InequalityPattern):
301
when
Supports
(Feature.RelationalPattern) && IsRelationalOperator(op.OperatorKind):
307
when
Supports
(Feature.AndPattern | Feature.CaseGuard):
313
if (
Supports
(Feature.AndPattern))
324
if (
Supports
(Feature.CaseGuard) && op.RightOperand.Syntax is TExpressionSyntax node)
334
when
Supports
(Feature.IsTypePattern) && CheckTargetExpression(op.ValueOperand, out _) && op.Syntax is TIsExpressionSyntax node:
338
when
Supports
(Feature.SourcePattern) && CheckTargetExpression(op.Value, out _) && op.Pattern.Syntax is TPatternSyntax pattern:
ConvertIfToSwitch\AbstractConvertIfToSwitchCodeRefactoringProvider.cs (3)
59
if (analyzer.
Supports
(Feature.SwitchExpression) &&
60
CanConvertToSwitchExpression(analyzer.
Supports
(Feature.OrPattern), sections))
254
if (convertToSwitchExpression && !CanConvertToSwitchExpression(analyzer.
Supports
(Feature.OrPattern), sections))