7 references to AreEquivalent
Microsoft.CodeAnalysis.CodeStyle (7)
src\Analyzers\Core\Analyzers\UseCoalesceExpression\AbstractUseCoalesceExpressionForNullableTernaryConditionalCheckDiagnosticAnalyzer.cs (1)
96
if (!syntaxFacts.
AreEquivalent
(conditionExpression, whenPartExpression))
src\Analyzers\Core\Analyzers\UseCoalesceExpression\AbstractUseCoalesceExpressionForTernaryConditionalCheckDiagnosticAnalyzer.cs (1)
90
if (!syntaxFacts.
AreEquivalent
(
src\Analyzers\Core\Analyzers\UseCollectionInitializer\UpdateExpressionState.cs (1)
95
return SyntaxFacts.
AreEquivalent
(
src\Analyzers\Core\Analyzers\UseCompoundAssignment\AbstractUseCompoundAssignmentDiagnosticAnalyzer.cs (1)
115
if (!_syntaxFacts.
AreEquivalent
(assignmentLeft, binaryLeft))
src\Analyzers\Core\Analyzers\UseConditionalExpression\ForAssignment\UseConditionalExpressionForAssignmentHelpers.cs (2)
54
!syntaxFacts.
AreEquivalent
(trueAssignment.Target.Syntax, falseAssignment.Target.Syntax))
191
=> within?.DescendantNodes().Any(n => syntaxFacts.
AreEquivalent
(n, nullCheckedExpression)) is true;
src\Analyzers\Core\Analyzers\UseNullPropagation\AbstractUseNullPropagationDiagnosticAnalyzer.cs (1)
361
if (syntaxFacts.
AreEquivalent
(unwrapped, expressionToMatch))