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