36 references to Equals
ILLink.RoslynAnalyzer (1)
DataFlow\FeatureChecksVisitor.cs (1)
100 case BinaryOperatorKind.Equals:
Microsoft.AspNetCore.Mvc.Api.Analyzers (1)
ApiActionsDoNotRequireExplicitModelValidationCheckAnalyzer.cs (1)
139if (binaryOperation.OperatorKind == BinaryOperatorKind.Equals)
Microsoft.CodeAnalysis (2)
Operations\ControlFlowGraphBuilder.cs (2)
5579condition = new BinaryOperation(BinaryOperatorKind.Equals, 5629if (relationalValueClause.Relation == BinaryOperatorKind.Equals)
Microsoft.CodeAnalysis.CodeStyle (4)
src\Analyzers\Core\Analyzers\Helpers\HashCodeAnalyzer\HashCodeAnalyzer.OperationDeconstructor.cs (1)
99if (binary.OperatorKind == BinaryOperatorKind.Equals)
src\Analyzers\Core\Analyzers\RemoveRedundantEquality\AbstractRemoveRedundantEqualityDiagnosticAnalyzer.cs (2)
65if (operation.OperatorKind is not (BinaryOperatorKind.Equals or BinaryOperatorKind.NotEquals)) 68var isOperatorEquals = operation.OperatorKind == BinaryOperatorKind.Equals;
src\Analyzers\Core\Analyzers\UseThrowExpression\AbstractUseThrowExpressionDiagnosticAnalyzer.cs (1)
220if (binaryOperator.OperatorKind != BinaryOperatorKind.Equals)
Microsoft.CodeAnalysis.CodeStyle.Fixes (3)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_Negate.cs (3)
23{ BinaryOperatorKind.Equals, BinaryOperatorKind.NotEquals }, 24{ BinaryOperatorKind.NotEquals, BinaryOperatorKind.Equals }, 176var newBinaryExpressionSyntax = negatedKind is BinaryOperatorKind.Equals or BinaryOperatorKind.NotEquals
Microsoft.CodeAnalysis.CSharp (1)
Operations\CSharpOperationFactory_Methods.cs (1)
591return BinaryOperatorKind.Equals;
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
src\Analyzers\CSharp\Analyzers\UsePatternCombinators\CSharpUsePatternCombinatorsAnalyzer.cs (1)
44case IBinaryOperation { OperatorKind: BinaryOperatorKind.Equals } op:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (1)
932var opName = operatorKind == BinaryOperatorKind.Equals
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (4)
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordHelpers.cs (3)
158OperatorKind: BinaryOperatorKind.Equals, 666: BinaryOperatorKind.Equals; 753OperatorKind: BinaryOperatorKind.Equals,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpSyntaxGeneratorInternal.cs (1)
156BinaryOperatorKind.Equals => generator.ReferenceEqualsExpression(left, right),
Microsoft.CodeAnalysis.CSharp.Features (4)
src\Analyzers\CSharp\Analyzers\UsePatternCombinators\CSharpUsePatternCombinatorsAnalyzer.cs (1)
44case IBinaryOperation { OperatorKind: BinaryOperatorKind.Equals } op:
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordHelpers.cs (3)
158OperatorKind: BinaryOperatorKind.Equals, 666: BinaryOperatorKind.Equals; 753OperatorKind: BinaryOperatorKind.Equals,
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (1)
932var opName = operatorKind == BinaryOperatorKind.Equals
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpSyntaxGeneratorInternal.cs (1)
156BinaryOperatorKind.Equals => generator.ReferenceEqualsExpression(left, right),
Microsoft.CodeAnalysis.Features (5)
ConvertIfToSwitch\AbstractConvertIfToSwitchCodeRefactoringProvider.Analyzer.cs (1)
276case IBinaryOperation { OperatorKind: BinaryOperatorKind.Equals } op:
src\Analyzers\Core\Analyzers\Helpers\HashCodeAnalyzer\HashCodeAnalyzer.OperationDeconstructor.cs (1)
99if (binary.OperatorKind == BinaryOperatorKind.Equals)
src\Analyzers\Core\Analyzers\RemoveRedundantEquality\AbstractRemoveRedundantEqualityDiagnosticAnalyzer.cs (2)
65if (operation.OperatorKind is not (BinaryOperatorKind.Equals or BinaryOperatorKind.NotEquals)) 68var isOperatorEquals = operation.OperatorKind == BinaryOperatorKind.Equals;
src\Analyzers\Core\Analyzers\UseThrowExpression\AbstractUseThrowExpressionDiagnosticAnalyzer.cs (1)
220if (binaryOperator.OperatorKind != BinaryOperatorKind.Equals)
Microsoft.CodeAnalysis.Test.Utilities (2)
Compilation\TestOperationVisitor.cs (1)
1379Operations.BinaryOperatorKind.Equals or // Error cases
Diagnostics\OperationTestAnalyzer.cs (1)
407case BinaryOperatorKind.Equals:
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\LanguageServices\VisualBasicSyntaxGeneratorInternal.vb (1)
157Case BinaryOperatorKind.Equals
Microsoft.CodeAnalysis.VisualBasic.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\LanguageServices\VisualBasicSyntaxGeneratorInternal.vb (1)
157Case BinaryOperatorKind.Equals
Microsoft.CodeAnalysis.Workspaces (3)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_Negate.cs (3)
23{ BinaryOperatorKind.Equals, BinaryOperatorKind.NotEquals }, 24{ BinaryOperatorKind.NotEquals, BinaryOperatorKind.Equals }, 176var newBinaryExpressionSyntax = negatedKind is BinaryOperatorKind.Equals or BinaryOperatorKind.NotEquals