6 references to AreEquivalent
Microsoft.CodeAnalysis.CSharp.CodeStyle (6)
src\Analyzers\CSharp\Analyzers\UseCompoundAssignment\CSharpUseCompoundCoalesceAssignmentDiagnosticAnalyzer.cs (2)
82
if (!syntaxFacts.
AreEquivalent
(coalesceLeft, assignment.Left))
145
if (!syntaxFacts.
AreEquivalent
(testedExpression, assignment.Left))
src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\CSharpUseRangeOperatorDiagnosticAnalyzer.cs (3)
192
if (!CSharpSyntaxFacts.Instance.
AreEquivalent
(lengthOperation.Syntax, subtraction.RightOperand.Syntax))
208
if (!CSharpSyntaxFacts.Instance.
AreEquivalent
(startOperation.Syntax, subtraction.RightOperand.Syntax))
246
if (CSharpSyntaxFacts.Instance.
AreEquivalent
(startOperation.Syntax, subtraction.RightOperand.Syntax))
src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\Helpers.cs (1)
48
CSharpSyntaxFacts.Instance.
AreEquivalent
(instance.Syntax, propertyRef.Instance.Syntax);