8 references to Supports
Microsoft.CodeAnalysis.Features (8)
ConvertIfToSwitch\AbstractConvertIfToSwitchCodeRefactoringProvider.Analyzer.cs (8)
281
when
Supports
(Feature.RangePattern) && GetRangeBounds(op) is (TExpressionSyntax lower, TExpressionSyntax higher):
295
when
Supports
(Feature.InequalityPattern):
299
when
Supports
(Feature.RelationalPattern) && IsRelationalOperator(op.OperatorKind):
305
when
Supports
(Feature.AndPattern | Feature.CaseGuard):
311
if (
Supports
(Feature.AndPattern))
322
if (
Supports
(Feature.CaseGuard) && op.RightOperand.Syntax is TExpressionSyntax node)
332
when
Supports
(Feature.IsTypePattern) && CheckTargetExpression(op.ValueOperand) && op.Syntax is TIsExpressionSyntax node:
336
when
Supports
(Feature.SourcePattern) && CheckTargetExpression(op.Value) && op.Pattern.Syntax is TPatternSyntax pattern: