7 references to MergeEquivalentTypes
Microsoft.CodeAnalysis.CSharp (7)
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (1)
3437
TypeWithAnnotations merged = latest.
MergeEquivalentTypes
(newCandidate, variance);
Symbols\ArrayTypeSymbol.cs (1)
414
TypeWithAnnotations elementType = ElementTypeWithAnnotations.
MergeEquivalentTypes
(((ArrayTypeSymbol)other).ElementTypeWithAnnotations, variance);
Symbols\FunctionPointers\FunctionPointerMethodSymbol.cs (2)
352
var mergedReturnType = ReturnTypeWithAnnotations.
MergeEquivalentTypes
(signature.ReturnTypeWithAnnotations, returnVariance);
371
var mergedParameterType = thisParam.TypeWithAnnotations.
MergeEquivalentTypes
(otherParam.TypeWithAnnotations, paramVariance);
Symbols\NamedTypeSymbol.cs (1)
1058
TypeWithAnnotations merged = typeArgumentA.
MergeEquivalentTypes
(typeArgumentB, typeArgumentVariance);
Symbols\PointerTypeSymbol.cs (1)
276
TypeWithAnnotations pointedAtType = PointedAtTypeWithAnnotations.
MergeEquivalentTypes
(((PointerTypeSymbol)other).PointedAtTypeWithAnnotations, VarianceKind.None);
Symbols\Source\SourceNamedTypeSymbol.cs (1)
610
mergedConstraintTypes[index1] = constraintType1.
MergeEquivalentTypes
(constraintType2, VarianceKind.None);