33 references to HasSameTypeDefinition
ILCompiler.Compiler (14)
Compiler\Compilation.cs (1)
526
while (!slotNormalizedMethod.OwningType.
HasSameTypeDefinition
(runtimeDeterminedOwningType))
Compiler\DependencyAnalysis\EETypeNode.cs (2)
470
while (!implType.
HasSameTypeDefinition
(implMethod.OwningType))
1229
Debug.Assert(_type.IsTypeDefinition || !_type.
HasSameTypeDefinition
(context.ArrayOfTClass), "Asking for Array<T> MethodTable");
Compiler\DependencyAnalysis\GenericTypesTemplateMap.cs (1)
89
if (type.
HasSameTypeDefinition
(factory.ArrayOfTClass))
Compiler\DependencyAnalysis\InterfaceDispatchMapNode.cs (2)
195
while (!implType.
HasSameTypeDefinition
(implMethod.OwningType))
268
if (declTypeDefinition.
HasSameTypeDefinition
(providingInterfaceDefinitionType) &&
Compiler\DependencyAnalysis\NativeLayoutVertexNode.cs (1)
733
if (owningType.IsSzArray || owningType.
HasSameTypeDefinition
(factory.ArrayOfTClass) || owningType.IsValueType || owningType.IsSealed())
Compiler\DependencyAnalysis\SealedVTableNode.cs (2)
185
if (implMethod.Signature.IsStatic || !implMethod.OwningType.
HasSameTypeDefinition
(declType))
188
while (!implType.
HasSameTypeDefinition
(implMethod.OwningType))
Compiler\DependencyAnalysis\TentativeInstanceMethodNode.cs (1)
44
if (owningType.
HasSameTypeDefinition
(factory.ArrayOfTClass))
parent\parent\Common\Compiler\DevirtualizationManager.cs (3)
82
if (canonicalInterfaceType.
HasSameTypeDefinition
(runtimeInterface) &&
135
if (iface.
HasSameTypeDefinition
(declMethod.OwningType) && iface.CanCastTo(declMethod.OwningType))
182
for (checkType = implType; checkType != null && !checkType.
HasSameTypeDefinition
(declMethod.OwningType); checkType = checkType.BaseType)
parent\parent\Common\Compiler\TypeExtensions.cs (1)
206
if (!type1.
HasSameTypeDefinition
(type2))
ILCompiler.ReadyToRun (8)
parent\parent\Common\Compiler\DevirtualizationManager.cs (3)
82
if (canonicalInterfaceType.
HasSameTypeDefinition
(runtimeInterface) &&
135
if (iface.
HasSameTypeDefinition
(declMethod.OwningType) && iface.CanCastTo(declMethod.OwningType))
182
for (checkType = implType; checkType != null && !checkType.
HasSameTypeDefinition
(declMethod.OwningType); checkType = checkType.BaseType)
parent\parent\Common\Compiler\TypeExtensions.cs (1)
206
if (!type1.
HasSameTypeDefinition
(type2))
parent\parent\Common\JitInterface\CorInfoImpl.cs (4)
1313
Debug.Assert(type.
HasSameTypeDefinition
(method.OwningType));
1904
Debug.Assert(typeContext.
HasSameTypeDefinition
(owningMethod.OwningType) || typeContext.IsArray);
1920
Debug.Assert(methodContext.OwningType.
HasSameTypeDefinition
(owningMethod.OwningType));
3178
if (type1.
HasSameTypeDefinition
(type2))
ILCompiler.RyuJit (4)
parent\parent\Common\JitInterface\CorInfoImpl.cs (4)
1313
Debug.Assert(type.
HasSameTypeDefinition
(method.OwningType));
1904
Debug.Assert(typeContext.
HasSameTypeDefinition
(owningMethod.OwningType) || typeContext.IsArray);
1920
Debug.Assert(methodContext.OwningType.
HasSameTypeDefinition
(owningMethod.OwningType));
3178
if (type1.
HasSameTypeDefinition
(type2))
ILCompiler.TypeSystem (7)
parent\parent\Common\TypeSystem\Canon\CastingHelper.Canon.cs (1)
72
if (!thisType.
HasSameTypeDefinition
(otherType))
parent\parent\Common\TypeSystem\Common\CastingHelper.cs (1)
478
if (!thisType.
HasSameTypeDefinition
(otherType))
parent\parent\Common\TypeSystem\Common\CastingHelper.TypeEquivalence.cs (1)
84
if (!thisType.
HasSameTypeDefinition
(otherType))
parent\parent\Common\TypeSystem\Common\MetadataVirtualMethodAlgorithm.cs (4)
788
if (iface.
HasSameTypeDefinition
(interfaceType) && iface.CanCastTo(interfaceType))
885
if (currentMT.
HasSameTypeDefinition
(interfaceMT))
995
if (allowVariance && candidateMT.
HasSameTypeDefinition
(currentMT))
1165
if (!runtimeInterfaceType.
HasSameTypeDefinition
(interfaceType))