11 references to Supports
Microsoft.CodeAnalysis.Features (11)
ConvertIfToSwitch\AbstractConvertIfToSwitchCodeRefactoringProvider.Analyzer.cs (8)
274
when
Supports
(Feature.RangePattern) && GetRangeBounds(op) is (TExpressionSyntax lower, TExpressionSyntax higher):
288
when
Supports
(Feature.InequalityPattern):
292
when
Supports
(Feature.RelationalPattern) && IsRelationalOperator(op.OperatorKind):
298
when
Supports
(Feature.AndPattern | Feature.CaseGuard):
304
if (
Supports
(Feature.AndPattern))
315
if (
Supports
(Feature.CaseGuard) && op.RightOperand.Syntax is TExpressionSyntax node)
325
when
Supports
(Feature.IsTypePattern) && CheckTargetExpression(op.ValueOperand) && op.Syntax is TIsExpressionSyntax node:
329
when
Supports
(Feature.SourcePattern) && CheckTargetExpression(op.Value) && op.Pattern.Syntax is TPatternSyntax pattern:
ConvertIfToSwitch\AbstractConvertIfToSwitchCodeRefactoringProvider.cs (3)
58
if (analyzer.
Supports
(Feature.SwitchExpression) &&
59
CanConvertToSwitchExpression(analyzer.
Supports
(Feature.OrPattern), sections))
254
if (convertToSwitchExpression && !CanConvertToSwitchExpression(analyzer.
Supports
(Feature.OrPattern), sections))