5 references to CheckTargetExpression
Microsoft.CodeAnalysis.Features (5)
ConvertIfToSwitch\AbstractConvertIfToSwitchCodeRefactoringProvider.Analyzer.cs (5)
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,
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:
392
=> _syntaxFacts.AreEquivalent(left.Syntax, right.Syntax) && this.
CheckTargetExpression
(left);