82 references to MemberSignatureComparer
Microsoft.CodeAnalysis.CSharp (81)
Binder\Binder_Crefs.cs (1)
827if (MemberSignatureComparer.CrefComparer.Equals(signatureMember, candidate))
Binder\Binder_Expressions.cs (2)
10599if (MemberSignatureComparer.CSharp10MethodGroupSignatureComparer.Equals(method, candidate)) 10757if (MemberSignatureComparer.MethodGroupSignatureComparer.Equals(foundMethod, candidate))
Binder\Binder_Lookup.cs (2)
891var comparer = MemberSignatureComparer.CSharpOverrideComparer;
Binder\Semantics\OverloadResolution\OverloadResolution.cs (1)
1376!MemberSignatureComparer.SloppyOverrideComparer.Equals(member, moreDerivedOverride))
Lowering\Instrumentation\ModuleCancellationInstrumenter.cs (4)
195if (MemberSignatureComparer.HaveSameParameterTypes( 200MemberSignatureComparer.RefKindCompareMode.ConsiderDifferences, 203MemberSignatureComparer.HaveSameReturnTypes( 209MemberSignatureComparer.HaveSameConstraints(
Lowering\LocalRewriter\LocalRewriter_Call.cs (2)
205if (!MemberSignatureComparer.InterceptorsComparer.Equals(method, symbolForCompare)) 226if (!MemberSignatureComparer.InterceptorsStrictComparer.Equals(method, symbolForCompare))
Symbols\MemberSignatureComparer.cs (23)
42public static readonly MemberSignatureComparer ExplicitImplementationComparer = new MemberSignatureComparer( 64public static readonly MemberSignatureComparer CSharpImplicitImplementationComparer = new MemberSignatureComparer( 78public static readonly MemberSignatureComparer CSharpCloseImplicitImplementationComparer = new MemberSignatureComparer( 95public static readonly MemberSignatureComparer DuplicateSourceComparer = new MemberSignatureComparer( 108public static readonly MemberSignatureComparer RecordAPISignatureComparer = new MemberSignatureComparer( 121public static readonly MemberSignatureComparer PartialMethodsComparer = new MemberSignatureComparer( 134public static readonly MemberSignatureComparer PartialMethodsStrictComparer = new MemberSignatureComparer( 147public static readonly MemberSignatureComparer InterceptorsComparer = new MemberSignatureComparer( 162public static readonly MemberSignatureComparer InterceptorsStrictComparer = new MemberSignatureComparer( 175public static readonly MemberSignatureComparer CSharpOverrideComparer = new MemberSignatureComparer( 188private static readonly MemberSignatureComparer CSharpWithTupleNamesComparer = new MemberSignatureComparer( 201private static readonly MemberSignatureComparer CSharpWithoutTupleNamesComparer = new MemberSignatureComparer( 214public static readonly MemberSignatureComparer CSharpAccessorOverrideComparer = new MemberSignatureComparer( 228public static readonly MemberSignatureComparer CSharpCustomModifierOverrideComparer = new MemberSignatureComparer( 241internal static readonly MemberSignatureComparer SloppyOverrideComparer = new MemberSignatureComparer( 256public static readonly MemberSignatureComparer RuntimeSignatureComparer = new MemberSignatureComparer( 268public static readonly MemberSignatureComparer RuntimeExplicitImplementationSignatureComparer = new MemberSignatureComparer( 282public static readonly MemberSignatureComparer RuntimePlusRefOutSignatureComparer = new MemberSignatureComparer( 295public static readonly MemberSignatureComparer RuntimeImplicitImplementationComparer = new MemberSignatureComparer( 307public static readonly MemberSignatureComparer RetargetedExplicitImplementationComparer = new MemberSignatureComparer( 320public static readonly MemberSignatureComparer CrefComparer = new MemberSignatureComparer( 332internal static readonly MemberSignatureComparer CSharp10MethodGroupSignatureComparer = new MemberSignatureComparer( 346internal static readonly MemberSignatureComparer MethodGroupSignatureComparer = new MemberSignatureComparer(
Symbols\Metadata\PE\PENamedTypeSymbol.cs (1)
2786if (!MemberSignatureComparer.HaveSameConstraints(containingTypeParameter, containingTypeMap, nestedTypeParameter, nestedTypeMap))
Symbols\OverriddenOrHiddenMembersHelpers.cs (14)
298return MemberSignatureComparer.CSharpAccessorOverrideComparer.Equals(accessor, overriddenAccessor); //NB: custom comparer 306return MemberSignatureComparer.RuntimeSignatureComparer.Equals(accessor, overriddenAccessor); 376? MemberSignatureComparer.CSharpAccessorOverrideComparer.Equals(accessor, overriddenAccessor) //NB: custom comparer 377: MemberSignatureComparer.RuntimeSignatureComparer.Equals(accessor, overriddenAccessor))) 552? MemberSignatureComparer.CSharpCustomModifierOverrideComparer 553: MemberSignatureComparer.RuntimePlusRefOutSignatureComparer; 556? MemberSignatureComparer.CSharpOverrideComparer 557: MemberSignatureComparer.RuntimeSignatureComparer; 680if (MemberSignatureComparer.CSharpOverrideComparer.Equals(otherMember, currTypeBestMatch)) 812if (MemberSignatureComparer.CSharpOverrideComparer.Equals(otherMember, representativeMember) && 820if (MemberSignatureComparer.CSharpCustomModifierOverrideComparer.Equals(otherMember, representativeMember)) 858IEqualityComparer<Symbol> comparer = MemberSignatureComparer.CSharpCustomModifierOverrideComparer; 993if (otherMethod != method && MemberSignatureComparer.RuntimeSignatureComparer.Equals(otherMethod, method)) 1036MemberSignatureComparer.RuntimeSignatureComparer.Equals(method, otherMember))
Symbols\Retargeting\RetargetingMethodSymbol.cs (2)
325var retargeted = this.RetargetingTranslator.Retarget(impls[i], MemberSignatureComparer.RetargetedExplicitImplementationComparer); 344? this.RetargetingTranslator.Retarget(_underlyingMethod.OverriddenMethod, MemberSignatureComparer.RetargetedExplicitImplementationComparer)
Symbols\Retargeting\RetargetingNamedTypeSymbol.cs (2)
402var newBody = this.RetargetingTranslator.Retarget(body, MemberSignatureComparer.RetargetedExplicitImplementationComparer); 403var newImplemented = this.RetargetingTranslator.Retarget(implemented, MemberSignatureComparer.RetargetedExplicitImplementationComparer);
Symbols\Retargeting\RetargetingPropertySymbol.cs (1)
182var retargeted = this.RetargetingTranslator.Retarget(impls[i], MemberSignatureComparer.RetargetedExplicitImplementationComparer);
Symbols\Retargeting\RetargetingSymbolTranslator.cs (1)
1161Retarget(oldAttributeCtor, MemberSignatureComparer.RetargetedExplicitImplementationComparer);
Symbols\Source\ExplicitInterfaceHelpers.cs (4)
268if (MemberSignatureComparer.ExplicitImplementationComparer.Equals(implementingMember, interfaceMember)) 355if (implementingMember.ContainsTupleNames() && MemberSignatureComparer.ConsideringTupleNamesCreatesDifference(implementingMember, implementedMember)) 394if (!explicitInterfaceTypeIsDefinition && MemberSignatureComparer.RuntimeSignatureComparer.Equals(implementedMember, collisionCandidateMember)) 422if (MemberSignatureComparer.ExplicitImplementationComparer.Equals(implementedMember, collisionCandidateMember))
Symbols\Source\SourceMemberContainerSymbol.cs (5)
184PooledDictionary<Symbol, Symbol>.CreatePool(MemberSignatureComparer.RecordAPISignatureComparer); 1948var methodsBySignature = new Dictionary<SourceMemberMethodSymbol, SourceMemberMethodSymbol>(MemberSignatureComparer.DuplicateSourceComparer); 1949var conversionsAsMethods = new Dictionary<SourceMemberMethodSymbol, SourceMemberMethodSymbol>(MemberSignatureComparer.DuplicateSourceComparer); 2188var indexersBySignature = new Dictionary<PropertySymbol, PropertySymbol>(MemberSignatureComparer.DuplicateSourceComparer); 3619var membersBySignature = new Dictionary<Symbol, Symbol>(MemberSignatureComparer.PartialMethodsComparer);
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (3)
910MemberSignatureComparer.ConsideringTupleNamesCreatesDifference(overridingMember, overriddenMember)) 1830if (MemberSignatureComparer.RuntimeImplicitImplementationComparer.Equals(implementingMethod, interfaceMethod) && 1863else if (MemberSignatureComparer.RuntimeExplicitImplementationSignatureComparer.Equals(implementingMethod, interfaceMethod))
Symbols\Source\SourceOrdinaryMethodSymbol.cs (4)
484else if (MemberSignatureComparer.ConsideringTupleNamesCreatesDifference(definition, implementation)) 570if ((!hasTypeDifferences && !MemberSignatureComparer.PartialMethodsStrictComparer.Equals(definition, implementation)) || 609if (!MemberSignatureComparer.HaveSameConstraints(typeParameter1, typeMap1, typeParameter2, typeMap2)) 613else if (!MemberSignatureComparer.HaveSameNullabilityInConstraints(typeParameter1, typeMap1, typeParameter2, typeMap2))
Symbols\Source\SourcePropertySymbol.cs (2)
695else if (MemberSignatureComparer.ConsideringTupleNamesCreatesDifference(this, implementation)) 707if ((!hasTypeDifferences && !MemberSignatureComparer.PartialMethodsStrictComparer.Equals(this, implementation))
Symbols\TypeSymbol.cs (7)
1707if (implicitImpl.ContainsTupleNames() && MemberSignatureComparer.ConsideringTupleNamesCreatesDifference(implicitImpl, interfaceMember)) 1730else if (MemberSignatureComparer.RuntimeImplicitImplementationComparer.Equals(interfaceMember, member) && !member.IsAccessor()) 2107if (!MemberSignatureComparer.HaveSameConstraints(typeParameter1, typeMap1, typeParameter2, typeMap2)) 2119else if (!MemberSignatureComparer.HaveSameNullabilityInConstraints(typeParameter1, typeMap1, typeParameter2, typeMap2)) 2197if (MemberSignatureComparer.CSharpCloseImplicitImplementationComparer.Equals(interfaceMember, member)) 2249return MemberSignatureComparer.CSharpImplicitImplementationComparer.Equals(interfaceMember, candidateMember); 2258return MemberSignatureComparer.RuntimeImplicitImplementationComparer.Equals(interfaceMember, candidateMember);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
RefReadonlyParameterTests.cs (1)
7073/// If <see cref="MemberSignatureComparer.CrefComparer"/> allowed 'ref readonly'/'in' mismatch,