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