42 references to EqualityOperatorName
Microsoft.CodeAnalysis (1)
WellKnownMembers.cs (1)
5218WellKnownMemberNames.EqualityOperatorName, // System_Type__op_Equality
Microsoft.CodeAnalysis.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\IMethodSymbolExtensions.cs (1)
81WellKnownMemberNames.EqualityOperatorName => PredefinedOperator.Equality,
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationOperatorSymbol.cs (1)
91CodeGenerationOperatorKind.Equality => WellKnownMemberNames.EqualityOperatorName,
Microsoft.CodeAnalysis.CSharp (13)
Binder\Binder_Operators.cs (1)
2405else if (methodOpt.Name is WellKnownMemberNames.EqualityOperatorName or WellKnownMemberNames.InequalityOperatorName)
Binder\Semantics\Operators\OperatorFacts.cs (2)
81case SyntaxKind.EqualsEqualsToken: return WellKnownMemberNames.EqualityOperatorName; 195case BinaryOperatorKind.Equal: return WellKnownMemberNames.EqualityOperatorName;
Lowering\DiagnosticsPass_Warnings.cs (1)
362string opName = (oldOperatorKind == BinaryOperatorKind.ObjectEqual) ? WellKnownMemberNames.EqualityOperatorName : WellKnownMemberNames.InequalityOperatorName;
Symbols\Metadata\PE\PEMethodSymbol.cs (1)
1214case WellKnownMemberNames.EqualityOperatorName:
Symbols\Source\SourceMemberContainerSymbol.cs (2)
2476CheckForUnmatchedOperator(diagnostics, WellKnownMemberNames.EqualityOperatorName, WellKnownMemberNames.InequalityOperatorName); 2588bool hasOp = this.GetOperators(WellKnownMemberNames.EqualityOperatorName).Any() ||
Symbols\Source\SourceUserDefinedOperatorSymbol.cs (1)
84if (IsAbstract || IsVirtual || (name != WellKnownMemberNames.EqualityOperatorName && name != WellKnownMemberNames.InequalityOperatorName))
Symbols\Source\SourceUserDefinedOperatorSymbolBase.cs (1)
392case WellKnownMemberNames.EqualityOperatorName:
Symbols\Synthesized\Records\SynthesizedRecordEqualityOperator.cs (1)
28: base(containingType, WellKnownMemberNames.EqualityOperatorName, memberOffset, diagnostics)
Symbols\Synthesized\Records\SynthesizedRecordEqualityOperatorBase.cs (1)
42Debug.Assert(name == WellKnownMemberNames.EqualityOperatorName || name == WellKnownMemberNames.InequalityOperatorName);
Symbols\Synthesized\Records\SynthesizedRecordInequalityOperator.cs (1)
41F.CloseMethod(F.Block(F.Return(F.Not(F.Call(receiver: null, ContainingType.GetMembers(WellKnownMemberNames.EqualityOperatorName).OfType<SynthesizedRecordEqualityOperator>().Single(),
Syntax\SyntaxKindFacts.cs (1)
1039case WellKnownMemberNames.EqualityOperatorName: return SyntaxKind.EqualsEqualsToken;
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (1)
915? WellKnownMemberNames.EqualityOperatorName
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (7)
Attributes\AttributeTests_Synthesized.cs (5)
681var op_Equality = record.GetMember(WellKnownMemberNames.EqualityOperatorName); 748var op_Equality = record.GetMember(WellKnownMemberNames.EqualityOperatorName); 823var op_Equality = record.GetMember(WellKnownMemberNames.EqualityOperatorName); 900var op_Equality = record.GetMember(WellKnownMemberNames.EqualityOperatorName); 951var op_Equality = record.GetMember(WellKnownMemberNames.EqualityOperatorName);
Semantics\RecordTests.cs (2)
20332MethodSymbol op = comp.GetMembers("A." + WellKnownMemberNames.EqualityOperatorName).OfType<SynthesizedRecordEqualityOperator>().Single(); 20451MethodSymbol op = comp.GetMembers("A." + WellKnownMemberNames.EqualityOperatorName).OfType<SynthesizedRecordEqualityOperator>().Single();
Microsoft.CodeAnalysis.CSharp.Features (1)
Completion\CompletionProviders\OperatorsAndIndexer\UnnamedSymbolCompletionProvider_Operators.cs (1)
43(WellKnownMemberNames.EqualityOperatorName, OperatorPosition.Infix),
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (2)
Semantics\OperatorTests.cs (1)
6933var expectedOperator = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("S1").GetMembers(WellKnownMemberNames.EqualityOperatorName).
Semantics\RecordStructTests.cs (1)
4904MethodSymbol op = comp.GetMembers("A." + WellKnownMemberNames.EqualityOperatorName).OfType<SynthesizedRecordEqualityOperator>().Single();
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Compilation\CompilationAPITests.cs (1)
2749[InlineData(WellKnownMemberNames.EqualityOperatorName, "int.operator ==(int, int)")]
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
CodeGeneration\CSharpSyntaxGenerator.cs (1)
326OperatorKind.Equality => WellKnownMemberNames.EqualityOperatorName,
Recommendations\CSharpRecommendationServiceRunner_Operators.cs (1)
90case WellKnownMemberNames.EqualityOperatorName:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (1)
915? WellKnownMemberNames.EqualityOperatorName
Microsoft.CodeAnalysis.Features (1)
GenerateEqualsAndGetHashCodeFromMembers\GenerateEqualsAndGetHashCodeFromMembersCodeRefactoringProvider.cs (1)
122=> HasOperator(containingType, WellKnownMemberNames.EqualityOperatorName) ||
Microsoft.CodeAnalysis.VisualBasic (6)
Binding\DocumentationCommentCrefBinder.vb (1)
973CollectOperatorsAndConversionsInType(type, symbols, MethodKind.UserDefinedOperator, WellKnownMemberNames.EqualityOperatorName, opInfo, useSiteInfo)
Semantics\Operators.vb (3)
103operators.Add(WellKnownMemberNames.EqualityOperatorName, New OperatorInfo(BinaryOperatorKind.Equals)) 227Return WellKnownMemberNames.EqualityOperatorName 3064WellKnownMemberNames.EqualityOperatorName, New OperatorInfo(opKind),
Symbols\Source\SourceMemberContainerTypeSymbol.vb (1)
3654nameOfThePair = WellKnownMemberNames.EqualityOperatorName
Symbols\Source\SourceMethodSymbol.vb (1)
963Return WellKnownMemberNames.EqualityOperatorName
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (1)
Compilation\CompilationAPITests.vb (1)
1753<InlineData(WellKnownMemberNames.EqualityOperatorName, "Public Shared Operator =(left As Integer, right As Integer) As Boolean")>
Microsoft.CodeAnalysis.VisualBasic.Workspaces (1)
CodeGeneration\VisualBasicSyntaxGenerator.vb (1)
773Return WellKnownMemberNames.EqualityOperatorName
Microsoft.CodeAnalysis.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\IMethodSymbolExtensions.cs (1)
81WellKnownMemberNames.EqualityOperatorName => PredefinedOperator.Equality,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationOperatorSymbol.cs (1)
91CodeGenerationOperatorKind.Equality => WellKnownMemberNames.EqualityOperatorName,