2 overrides of GetTypeDefinition
ILCompiler.TypeSystem (2)
parent\parent\Common\TypeSystem\Common\InstantiatedType.cs (1)
296
public override TypeDesc
GetTypeDefinition
()
parent\parent\Common\TypeSystem\RuntimeDetermined\RuntimeDeterminedType.cs (1)
168
public override TypeDesc
GetTypeDefinition
()
234 references to GetTypeDefinition
ILCompiler.Compiler (125)
Compiler\AnalysisBasedMetadataManager.cs (1)
281
return _parent.IsInterfaceUsed(interfaceImpl.
GetTypeDefinition
());
Compiler\Compilation.cs (1)
528
DefType runtimeDeterminedBaseTypeDefinition = runtimeDeterminedOwningType.
GetTypeDefinition
().BaseType;
Compiler\CompilerTypeSystemContext.Aot.cs (6)
90
|| type.
GetTypeDefinition
() == ArrayOfTEnumeratorType
157
interfaceDefinitions[i] = implementedInterfaces[i].
GetTypeDefinition
();
161
TypeDesc interfaceDefinition = type.
GetTypeDefinition
();
187
definitions.Add(interfaceType.
GetTypeDefinition
());
194
TypeDesc interfaceDefinition = type.
GetTypeDefinition
();
235
DelegateInfo info = GetDelegateInfo(type.
GetTypeDefinition
());
Compiler\CompilerTypeSystemContext.GetFieldMethodOverrides.cs (2)
36
TypeDesc valueTypeDefinition = valueType.
GetTypeDefinition
();
59
TypeDesc attributeTypeDefinition = attributeType.
GetTypeDefinition
();
Compiler\CompilerTypeSystemContext.InterfaceThunks.cs (3)
75
Debug.Assert(interfaceOnDefinition.
GetTypeDefinition
() == targetMethod.OwningType.
GetTypeDefinition
());
91
interfaceIndex = Array.IndexOf(implementingClass.
GetTypeDefinition
().RuntimeInterfaces, interfaceOnDefinition);
Compiler\Dataflow\CompilerGeneratedState.cs (11)
119
Debug.Assert(type == type.
GetTypeDefinition
());
254
Debug.Assert(stateMachineType == stateMachineType.
GetTypeDefinition
());
355
Debug.Assert(generatedType == generatedType.
GetTypeDefinition
());
396
Debug.Assert(generatedType == generatedType.
GetTypeDefinition
());
441
owningType = (MetadataType)owningType.
GetTypeDefinition
();
475
&& compilerGeneratedType == owningType.
GetTypeDefinition
())
494
&& compilerGeneratedType == owningType.
GetTypeDefinition
())
515
if (tr is MetadataType && tr != tr.
GetTypeDefinition
()
516
&& compilerGeneratedType == tr.
GetTypeDefinition
())
684
MetadataType generatedType = (MetadataType)type.
GetTypeDefinition
();
713
MetadataType? sourceType = ((sourceMember as TypeDesc) ?? sourceMember.GetOwningType())?.
GetTypeDefinition
() as MetadataType;
Compiler\Dataflow\DiagnosticUtilities.cs (1)
49
var ecmaType = type.
GetTypeDefinition
() as EcmaType;
Compiler\Dataflow\FlowAnnotations.cs (4)
102
return GetAnnotations(type.
GetTypeDefinition
()).HasGenericParameterAnnotation();
161
return GetAnnotations(type.
GetTypeDefinition
()).TypeAnnotation;
357
var ecmaBaseType = (EcmaType)baseType.
GetTypeDefinition
();
366
var ecmaInterface = (EcmaType)runtimeInterface.
GetTypeDefinition
();
Compiler\Dataflow\GenericArgumentDataFlow.cs (1)
100
TypeDesc typeDefinition = type.
GetTypeDefinition
();
Compiler\Dataflow\HandleCallAction.cs (2)
385
_reflectionMarker.Dependencies.Add(_reflectionMarker.Factory.ReflectedDelegate(staticType.
GetTypeDefinition
()), "Delegate.Method access (on inexact type)");
576
marker.Dependencies.Add(marker.Factory.ReflectedType(constraint.
GetTypeDefinition
()), "MakeGeneric used with a constrained type");
Compiler\DelegateCreationInfo.cs (1)
197
DelegateInfo delegateInfo = context.GetDelegateInfo(delegateType.
GetTypeDefinition
());
Compiler\DependencyAnalysis\CallingConventionConverterKey.cs (1)
111
AppendName(sb, type.
GetTypeDefinition
());
Compiler\DependencyAnalysis\CustomAttributeBasedDependencyAlgorithm.cs (1)
218
EcmaType attributeTypeDefinition = (EcmaType)attributeType.
GetTypeDefinition
();
Compiler\DependencyAnalysis\DataflowAnalyzedTypeDefinitionNode.cs (1)
32
type = type.
GetTypeDefinition
();
Compiler\DependencyAnalysis\DynamicDependencyAttributesOnEntityNode.cs (1)
94
return (MetadataType)type.
GetTypeDefinition
();
Compiler\DependencyAnalysis\EETypeNode.cs (8)
327
var ifaceDefinition = (DefType)iface.
GetTypeDefinition
();
436
DefType defTypeDefinition = (DefType)defType.
GetTypeDefinition
();
542
factory.InterfaceUse(defTypeRuntimeInterfaces[i].
GetTypeDefinition
()),
597
dependencies.Add(factory.InterfaceUse(_type.
GetTypeDefinition
()), "Interface is used");
758
if (_type.
GetTypeDefinition
() == factory.TypeSystemContext.ArrayOfTEnumeratorType)
1051
if (factory.InterfaceUse(itf.
GetTypeDefinition
()).Marked)
1136
factory.MetadataTypeSymbol(_type.
GetTypeDefinition
()) : factory.NecessaryTypeSymbol(_type.
GetTypeDefinition
());
Compiler\DependencyAnalysis\GenericDefinitionEETypeNode.cs (1)
106
dependencyList.Add(factory.InterfaceUse(_type.
GetTypeDefinition
()), "Interface is used");
Compiler\DependencyAnalysis\GenericLookupResult.cs (1)
29
var owningTypeDefinition = (MetadataType)((TypeDesc)_canonicalOwner).
GetTypeDefinition
();
Compiler\DependencyAnalysis\InterfaceDispatchMapNode.cs (6)
97
(InstantiatedType)declType.
GetTypeDefinition
().RuntimeInterfaces[interfaceIndex];
115
declType.
GetTypeDefinition
().ResolveInterfaceMethodToStaticVirtualMethodOnType(declMethod) :
116
declType.
GetTypeDefinition
().ResolveInterfaceMethodToVirtualMethodOnType(declMethod);
142
TypeDesc declTypeDefinition = declType.
GetTypeDefinition
();
143
TypeDesc declTypeBaseDefinition = declTypeDefinition.BaseType?.
GetTypeDefinition
();
167
if (!factory.InterfaceUse(interfaceType.
GetTypeDefinition
()).Marked)
Compiler\DependencyAnalysis\InterfaceGenericVirtualMethodTableNode.cs (2)
54
TypeDesc openImplementationType = implementationType.
GetTypeDefinition
();
88
TypeDesc openImplementationType = implementationType.
GetTypeDefinition
();
Compiler\DependencyAnalysis\NativeLayoutVertexNode.cs (4)
447
_genericTypeDefSig = factory.NativeLayout.TypeSignatureVertex(type.
GetTypeDefinition
());
835
yield return new DependencyListEntry(context.InterfaceUse(typeConstraint.
GetTypeDefinition
()), "Used as constraint");
956
foreach (GenericParameterDesc genericParam in _type.
GetTypeDefinition
().Instantiation)
961
yield return new DependencyListEntry(context.InterfaceUse(typeConstraint.
GetTypeDefinition
()), "Used as constraint");
Compiler\DependencyAnalysis\NodeFactory.cs (1)
145
if (type.
GetTypeDefinition
() is INonEmittableType)
Compiler\DependencyAnalysis\ReflectionVirtualInvokeMapNode.cs (3)
56
TypeDesc typeOfDeclaringMethodForSlot = declaringMethodForSlot.OwningType.
GetTypeDefinition
();
57
TypeDesc currentType = method.OwningType.
GetTypeDefinition
();
63
currentType = currentType.BaseType.
GetTypeDefinition
();
Compiler\DependencyAnalysis\SealedVTableNode.cs (4)
147
TypeDesc declTypeDefinition = declType.
GetTypeDefinition
();
228
_nonRelocationDependencies.Add(factory.InterfaceUse(declTypeRuntimeInterfaces[i].
GetTypeDefinition
()), "Interface with shared default methods folows this");
305
Debug.Assert(interfaceDefinition == null || method.GetTypicalMethodDefinition().OwningType == interfaceDefinition.
GetTypeDefinition
());
339
Debug.Assert(method.GetTypicalMethodDefinition().OwningType == interfaceDefinition.
GetTypeDefinition
());
Compiler\DependencyAnalysis\TypeMetadataNode.cs (1)
160
TypeDesc typeDefinition = type.
GetTypeDefinition
();
Compiler\DependencyAnalysis\VariantInterfaceMethodUseNode.cs (3)
57
TypeDesc interfaceDefinition = implementedInterface.
GetTypeDefinition
();
79
(providingType.IsArray || providingType.
GetTypeDefinition
() == factory.TypeSystemContext.ArrayOfTEnumeratorType) &&
107
TypeDesc owningTypeDefinition = owningType.
GetTypeDefinition
();
Compiler\Logging\UnconditionalSuppressMessageAttributeState.cs (1)
315
if (type.
GetTypeDefinition
() is not EcmaType ecmaType)
Compiler\MetadataManager.cs (2)
883
writer.GetRecordHandle(transformed.GetTransformedTypeDefinition((MetadataType)method.OwningType.
GetTypeDefinition
())),
1196
TypeDesc typeDefinition = type.
GetTypeDefinition
();
Compiler\RootingHelpers.cs (3)
153
TypeDesc owningType = method.OwningType.
GetTypeDefinition
();
218
TypeDesc owningType = field.OwningType.
GetTypeDefinition
();
252
type = type.
GetTypeDefinition
();
Compiler\SubstitutedILProvider.cs (1)
1069
if (_metadataManager != null && knownType.
GetTypeDefinition
() is MetadataType mdType && _metadataManager.CanGenerateMetadata(mdType))
Compiler\UsageBasedMetadataManager.cs (6)
218
if (_compilationModuleGroup.ContainsType(type.
GetTypeDefinition
()))
588
factory.ReflectedDelegate(canonDelegateType.
GetTypeDefinition
()),
610
factory.ReflectedDelegate(canonDelegateType.
GetTypeDefinition
()),
798
var ecmaType = attributeType.
GetTypeDefinition
() as EcmaType;
868
TypeDesc constructedTypeDefinition = constructedType.
GetTypeDefinition
();
1059
return _factory.MetadataManager.IsInterfaceUsed(interfaceImpl.
GetTypeDefinition
());
Compiler\UserDefinedTypeDescriptor.cs (1)
65
Name = new Utf8String($"StateMachineLocals_{System.Reflection.Metadata.Ecma335.MetadataTokens.GetToken(((EcmaType)defType.
GetTypeDefinition
()).Handle):X}"),
Compiler\VirtualMethodCallHelper.cs (1)
15
Debug.Assert(method.GetTypicalMethodDefinition().OwningType == interfaceOnDefinition.
GetTypeDefinition
());
IL\ILImporter.Scanner.cs (1)
1202
&& typeEqualityCheckType.
GetTypeDefinition
() is MetadataType typeEqualityCheckMetadataType)
parent\parent\Common\Compiler\CachingVirtualMethodAlgorithm.cs (3)
48
foreach ((MethodDesc slot, _) in thisObj._vtableCache.GetOrAdd(type.
GetTypeDefinition
(), thisObj._vtableCreator))
57
MetadataType uninstantiatedType = (MetadataType)objectType.
GetTypeDefinition
();
67
foreach (var kvp in _vtableCache.GetOrAdd(objectType.
GetTypeDefinition
(), _vtableCreator))
parent\parent\Common\Compiler\CompilerTypeSystemContext.BoxedTypes.cs (2)
63
var owningTypeDefinition = (MetadataType)owningType.
GetTypeDefinition
();
90
var owningTypeDefinition = (MetadataType)owningType.
GetTypeDefinition
();
parent\parent\Common\Compiler\CompilerTypeSystemContext.Validation.cs (2)
341
((CompilerTypeSystemContext)type.Context).EnsureLoadableType(type.
GetTypeDefinition
());
351
if (type.Instantiation.Length != type.
GetTypeDefinition
().Instantiation.Length)
parent\parent\Common\Compiler\Dataflow\DynamicallyAccessedMembersBinder.cs (2)
304
if (type.
GetTypeDefinition
() is not EcmaType ecmaType)
372
if (type.
GetTypeDefinition
() is not EcmaType ecmaType)
parent\parent\Common\Compiler\Dataflow\EcmaExtensions.cs (2)
46
return mdType.
GetTypeDefinition
() is EcmaType ecmaType
54
var type = (EcmaType)mdType.
GetTypeDefinition
();
parent\parent\Common\Compiler\Dataflow\TypeProxy.cs (1)
21
var typeDef = Type.
GetTypeDefinition
();
parent\parent\Common\Compiler\DependencyAnalysis\GVMDependenciesNode.cs (3)
56
yield return new DependencyListEntry(factory.TypeGVMEntries(_method.OwningType.
GetTypeDefinition
()), "Resolution metadata");
132
TypeDesc potentialOverrideDefinition = potentialOverrideType.
GetTypeDefinition
();
264
dynamicDependencies.Add(new CombinedDependencyListEntry(factory.TypeGVMEntries(currentType.
GetTypeDefinition
()), null, "Resolution metadata"));
parent\parent\Common\Compiler\DisplayNameHelpers.cs (1)
215
AppendName(sb, type.
GetTypeDefinition
(), options);
parent\parent\Common\Compiler\NativeAotNameMangler.cs (1)
418
var typeDefinition = type.
GetTypeDefinition
();
parent\parent\Common\Compiler\ObjectWriter\TypeString.cs (1)
81
AppendName(sb, type.
GetTypeDefinition
());
parent\parent\Common\Compiler\ProcessLinkerXmlBase.cs (2)
420
if (type.
GetTypeDefinition
() is not EcmaType ecmaType)
649
AppendName(sb, type.
GetTypeDefinition
());
parent\parent\Common\Compiler\TypeMapMetadata.cs (1)
117
var typeDef = attrType.
GetTypeDefinition
() as MetadataType;
parent\parent\Common\JitInterface\CorInfoInstructionSet.cs (1)
1509
MetadataType metadataType = intrinsicType.
GetTypeDefinition
() as MetadataType;
parent\parent\Common\JitInterface\WasmLowering.cs (1)
193
if (type.
GetTypeDefinition
() is not MetadataType typeDefinition ||
parent\parent\Common\TypeSystem\IL\NativeAotILProvider.cs (1)
96
MetadataType owningType = method.OwningType.
GetTypeDefinition
() as MetadataType;
parent\parent\Common\TypeSystem\IL\Stubs\AsyncThunks.cs (2)
165
returnType: ((MetadataType)returnType.
GetTypeDefinition
()).MakeInstantiatedType(context.GetSignatureVariable(0, true)),
200
returnType: ((MetadataType)returnType.
GetTypeDefinition
()).MakeInstantiatedType(context.GetSignatureVariable(0, true)),
parent\parent\Common\TypeSystem\IL\Stubs\ComparerIntrinsics.cs (2)
213
if (implementedInterface.
GetTypeDefinition
() == interfaceType)
224
TypeDesc typeDefinition = type.
GetTypeDefinition
();
parent\parent\Common\TypeSystem\IL\Stubs\PInvokeILEmitter.cs (1)
40
_flags = ((EcmaType)delegateMethod.DelegateType.
GetTypeDefinition
()).GetDelegatePInvokeFlags();
parent\parent\Common\TypeSystem\IL\Stubs\RuntimeHelpersIntrinsics.cs (1)
66
bool? equatable = ComparerIntrinsics.ImplementsIEquatable(mdType.
GetTypeDefinition
());
parent\parent\Common\TypeSystem\MetadataEmitter\TypeSystemMetadataEmitter.cs (1)
467
EncodeType(blobBuilder, type.
GetTypeDefinition
(), signatureDataEmitter);
src\runtime\src\coreclr\tools\Common\Compiler\GenericCycleDetection\GraphBuilder.cs (1)
43
else if (processType.
GetTypeDefinition
() == processType)
src\runtime\src\coreclr\tools\Common\Compiler\GenericCycleDetection\GraphBuilder.ForEach.cs (1)
59
TypeDesc genericTypeDefinition = type.
GetTypeDefinition
();
src\runtime\src\coreclr\tools\Common\Compiler\GenericCycleDetection\ModuleCycleInfo.cs (5)
160
TypeDesc typeDef = type.
GetTypeDefinition
();
256
var ownerDefinition = ownerType?.
GetTypeDefinition
() ?? (TypeSystemEntity)ownerMethod.GetTypicalMethodDefinition();
259
var referentDefinition = referentType?.
GetTypeDefinition
() ?? (TypeSystemEntity)referentMethod.GetTypicalMethodDefinition();
302
TypeSystemEntity referentDefinition = referent is TypeDesc referentType ? referentType.
GetTypeDefinition
()
304
TypeSystemEntity ownerDefinition = owner is TypeDesc ownerType ? ownerType.
GetTypeDefinition
()
ILCompiler.MetadataTransform (2)
ILCompiler\Metadata\Transform.cs (1)
54
if (IsBlocked(type.
GetTypeDefinition
()))
ILCompiler\Metadata\Transform.Type.cs (1)
162
GenericType = HandleType(entity.
GetTypeDefinition
()),
ILCompiler.ReadyToRun (71)
Compiler\DependencyAnalysis\InheritedVirtualMethodsNode.cs (1)
88
DefType defTypeDefinition = (DefType)defType.
GetTypeDefinition
();
Compiler\DependencyAnalysis\ReadyToRun\DevirtualizationManager.cs (4)
56
if (_compilationModuleGroup.VersionsWithType(declMethod.OwningType.
GetTypeDefinition
()))
75
if (_compilationModuleGroup.VersionsWithType(declMethod.OwningType.
GetTypeDefinition
()))
95
if (!_compilationModuleGroup.VersionsWithType(implType.
GetTypeDefinition
()))
214
while (compilationModuleGroup.VersionsWithType(type.
GetTypeDefinition
()))
Compiler\DependencyAnalysis\ReadyToRun\MethodFixupSignature.cs (1)
170
if (method.Method.OwningType.
GetTypeDefinition
() is EcmaType)
Compiler\DependencyAnalysis\ReadyToRun\SignatureContext.cs (1)
62
if (type.
GetTypeDefinition
() is EcmaType ecmaType)
Compiler\DependencyAnalysis\ReadyToRun\TypeFixupSignature.cs (1)
231
if (factory.OptimizationFlags.OptimizeAsyncMethods && type.
GetTypeDefinition
() == context.AsyncStateMachineBoxType && !type.IsGenericDefinition && factory.CompilationCurrentPhase <= 7)
Compiler\ExternalReferenceTokenManager.cs (1)
168
EnsureTypeDefTokensAreAvailableInVersionBubble(type.
GetTypeDefinition
());
Compiler\ReadyToRunCodegenCompilation.cs (1)
1058
if (!CompilationModuleGroup.ContainsType(field.OwningType.
GetTypeDefinition
()))
Compiler\ReadyToRunCompilationModuleGroupBase.cs (11)
133
return type.
GetTypeDefinition
() is EcmaType ecmaType && IsModuleInCompilationGroup(ecmaType.Module);
396
return typeDesc.
GetTypeDefinition
() is EcmaType ecmaType &&
474
EcmaModule methodDefiningModule = ((MetadataType)method.OwningType.
GetTypeDefinition
()).Module as EcmaModule;
516
if (instArg.
GetTypeDefinition
() is MetadataType metadataType)
544
MetadataType owningMetadataType = method.OwningType.
GetTypeDefinition
() as MetadataType;
787
if (!(type.
GetTypeDefinition
() is EcmaType))
801
if (type == type.
GetTypeDefinition
())
818
if (type == type.
GetTypeDefinition
())
868
if (type.
GetTypeDefinition
() == type)
876
if (!VersionsWithTypeReference(type.
GetTypeDefinition
()))
908
entityDefinitionInstantiation = type.
GetTypeDefinition
().Instantiation;
Compiler\ReadyToRunCompilerContext.cs (1)
234
_similarVectorOpenType = ((MetadataType)vectorOfTType.
GetTypeDefinition
()).Module.GetType("System.Runtime.Intrinsics"u8, _similarVectorName);
Compiler\ReadyToRunMetadataFieldLayoutAlgorithm.cs (3)
56
if (defType.
GetTypeDefinition
() is EcmaType ecmaType)
117
if (moduleLayout && fieldType.
GetTypeDefinition
() is EcmaType ecmaType && ecmaType.Module != module)
218
if (moduleLayout && fieldDesc.FieldType.
GetTypeDefinition
() is EcmaType ecmaType && ecmaType.Module != module)
Compiler\ReadyToRunTypeMapEncoding.cs (1)
58
if (!IsTypeDescEncodable(factory, sourceModule, type.
GetTypeDefinition
()))
Compiler\ReadyToRunVisibilityRootProvider.cs (1)
50
MethodImplRecord[] methodImplRecords = GetAllMethodImplRecordsForType((EcmaType)type.
GetTypeDefinition
());
Compiler\RuntimeDeterminedTypeHelper.cs (3)
85
if (type1.
GetTypeDefinition
() != type2.
GetTypeDefinition
() ||
182
return type.
GetTypeDefinition
().GetHashCode() ^ GetHashCode(type.Instantiation);
IBC\IBCProfileParser.cs (2)
404
var ecmaType = (EcmaType)methodMetadataType.
GetTypeDefinition
();
740
EcmaModule ecmaModuleOfMethod = ((EcmaType)methodMetadataType.
GetTypeDefinition
()).Module;
JitInterface\CorInfoImpl.ReadyToRun.cs (3)
239
derivesFromTypeDefinition = currentType.
GetTypeDefinition
() == tokenOnlyOwningType;
1665
var uninstantiatedType = type.
GetTypeDefinition
();
2726
TypeDesc typeDefinition = type.
GetTypeDefinition
();
parent\parent\Common\Compiler\CachingVirtualMethodAlgorithm.cs (3)
48
foreach ((MethodDesc slot, _) in thisObj._vtableCache.GetOrAdd(type.
GetTypeDefinition
(), thisObj._vtableCreator))
57
MetadataType uninstantiatedType = (MetadataType)objectType.
GetTypeDefinition
();
67
foreach (var kvp in _vtableCache.GetOrAdd(objectType.
GetTypeDefinition
(), _vtableCreator))
parent\parent\Common\Compiler\CompilerTypeSystemContext.BoxedTypes.cs (2)
63
var owningTypeDefinition = (MetadataType)owningType.
GetTypeDefinition
();
90
var owningTypeDefinition = (MetadataType)owningType.
GetTypeDefinition
();
parent\parent\Common\Compiler\CompilerTypeSystemContext.Validation.cs (2)
341
((CompilerTypeSystemContext)type.Context).EnsureLoadableType(type.
GetTypeDefinition
());
351
if (type.Instantiation.Length != type.
GetTypeDefinition
().Instantiation.Length)
parent\parent\Common\Compiler\Dataflow\DynamicallyAccessedMembersBinder.cs (2)
304
if (type.
GetTypeDefinition
() is not EcmaType ecmaType)
372
if (type.
GetTypeDefinition
() is not EcmaType ecmaType)
parent\parent\Common\Compiler\Dataflow\EcmaExtensions.cs (2)
46
return mdType.
GetTypeDefinition
() is EcmaType ecmaType
54
var type = (EcmaType)mdType.
GetTypeDefinition
();
parent\parent\Common\Compiler\Dataflow\TypeProxy.cs (1)
21
var typeDef = Type.
GetTypeDefinition
();
parent\parent\Common\Compiler\DependencyAnalysis\GVMDependenciesNode.cs (1)
132
TypeDesc potentialOverrideDefinition = potentialOverrideType.
GetTypeDefinition
();
parent\parent\Common\Compiler\DisplayNameHelpers.cs (1)
215
AppendName(sb, type.
GetTypeDefinition
(), options);
parent\parent\Common\Compiler\NativeAotNameMangler.cs (1)
418
var typeDefinition = type.
GetTypeDefinition
();
parent\parent\Common\Compiler\ObjectWriter\TypeString.cs (1)
81
AppendName(sb, type.
GetTypeDefinition
());
parent\parent\Common\Compiler\ProcessLinkerXmlBase.cs (2)
420
if (type.
GetTypeDefinition
() is not EcmaType ecmaType)
649
AppendName(sb, type.
GetTypeDefinition
());
parent\parent\Common\Compiler\TypeMapMetadata.cs (1)
117
var typeDef = attrType.
GetTypeDefinition
() as MetadataType;
parent\parent\Common\JitInterface\CorInfoImpl.cs (3)
1370
return ObjectToHandle(HandleToObject(type).
GetTypeDefinition
());
2245
if (type.
GetTypeDefinition
() is EcmaType ecmaType)
2634
var lookupType = type.
GetTypeDefinition
(); // The number of fields on an instantiation is the same as on the generic definition
parent\parent\Common\JitInterface\CorInfoInstructionSet.cs (1)
1509
MetadataType metadataType = intrinsicType.
GetTypeDefinition
() as MetadataType;
parent\parent\Common\JitInterface\JitTypeNameFormatter.cs (1)
76
AppendName(sb, type.
GetTypeDefinition
());
parent\parent\Common\JitInterface\WasmLowering.cs (1)
193
if (type.
GetTypeDefinition
() is not MetadataType typeDefinition ||
parent\parent\Common\TypeSystem\IL\Stubs\AsyncThunks.cs (2)
165
returnType: ((MetadataType)returnType.
GetTypeDefinition
()).MakeInstantiatedType(context.GetSignatureVariable(0, true)),
200
returnType: ((MetadataType)returnType.
GetTypeDefinition
()).MakeInstantiatedType(context.GetSignatureVariable(0, true)),
parent\parent\Common\TypeSystem\IL\Stubs\ComparerIntrinsics.cs (2)
213
if (implementedInterface.
GetTypeDefinition
() == interfaceType)
224
TypeDesc typeDefinition = type.
GetTypeDefinition
();
parent\parent\Common\TypeSystem\IL\Stubs\RuntimeHelpersIntrinsics.cs (1)
66
bool? equatable = ComparerIntrinsics.ImplementsIEquatable(mdType.
GetTypeDefinition
());
parent\parent\Common\TypeSystem\MetadataEmitter\TypeSystemMetadataEmitter.cs (1)
467
EncodeType(blobBuilder, type.
GetTypeDefinition
(), signatureDataEmitter);
src\runtime\src\coreclr\tools\Common\Compiler\GenericCycleDetection\GraphBuilder.cs (1)
43
else if (processType.
GetTypeDefinition
() == processType)
src\runtime\src\coreclr\tools\Common\Compiler\GenericCycleDetection\GraphBuilder.ForEach.cs (1)
59
TypeDesc genericTypeDefinition = type.
GetTypeDefinition
();
src\runtime\src\coreclr\tools\Common\Compiler\GenericCycleDetection\ModuleCycleInfo.cs (3)
160
TypeDesc typeDef = type.
GetTypeDefinition
();
256
var ownerDefinition = ownerType?.
GetTypeDefinition
() ?? (TypeSystemEntity)ownerMethod.GetTypicalMethodDefinition();
259
var referentDefinition = referentType?.
GetTypeDefinition
() ?? (TypeSystemEntity)referentMethod.GetTypicalMethodDefinition();
ILCompiler.RyuJit (6)
JitInterface\CorInfoImpl.RyuJit.cs (2)
1405
Debug.Assert(targetMethod.OwningType.
GetTypeDefinition
() == constrainedType.
GetTypeDefinition
());
parent\parent\Common\JitInterface\CorInfoImpl.cs (3)
1370
return ObjectToHandle(HandleToObject(type).
GetTypeDefinition
());
2245
if (type.
GetTypeDefinition
() is EcmaType ecmaType)
2634
var lookupType = type.
GetTypeDefinition
(); // The number of fields on an instantiation is the same as on the generic definition
parent\parent\Common\JitInterface\JitTypeNameFormatter.cs (1)
76
AppendName(sb, type.
GetTypeDefinition
());
ILCompiler.TypeSystem (30)
parent\parent\Common\TypeSystem\Common\CastingHelper.cs (1)
494
Instantiation instantiationOpen = thisType.
GetTypeDefinition
().Instantiation;
parent\parent\Common\TypeSystem\Common\CastingHelper.TypeEquivalence.cs (4)
98
return IsEquivalentTo_TypeDefinition((MetadataType)thisType.
GetTypeDefinition
(), (MetadataType)otherType.
GetTypeDefinition
(), visited);
102
Debug.Assert(type1.
GetTypeDefinition
() == type1);
103
Debug.Assert(type2.
GetTypeDefinition
() == type2);
parent\parent\Common\TypeSystem\Common\ConstructedTypeRewritingHelpers.cs (1)
98
return type.Context.GetInstantiatedType((MetadataType)type.
GetTypeDefinition
(), new Instantiation(newInstantiation));
parent\parent\Common\TypeSystem\Common\InstantiatedType.cs (2)
209
while (typicalFinalizer.OwningType.
GetTypeDefinition
() != typeInHierarchy.
GetTypeDefinition
())
parent\parent\Common\TypeSystem\Common\MetadataFieldLayoutAlgorithm.cs (1)
27
ThrowHelper.ThrowTypeLoadException(ExceptionStringID.ClassLoadExplicitGeneric, type.
GetTypeDefinition
());
parent\parent\Common\TypeSystem\Common\MetadataVirtualMethodAlgorithm.cs (1)
337
MetadataType typeDefinition = (MetadataType)type.
GetTypeDefinition
();
parent\parent\Common\TypeSystem\Common\TypeDesc.cs (4)
306
return this.
GetTypeDefinition
().IsWellKnownType(WellKnownType.Nullable);
626
return
GetTypeDefinition
() == this;
635
return
GetTypeDefinition
() == otherType.
GetTypeDefinition
();
parent\parent\Common\TypeSystem\Common\TypeSystemConstraintsHelpers.cs (1)
192
TypeDesc uninstantiatedType = type.
GetTypeDefinition
();
parent\parent\Common\TypeSystem\Common\TypeSystemContext.cs (2)
731
TypeDesc typeDefinition = type.
GetTypeDefinition
();
754
TypeDesc typeDefinition = type.
GetTypeDefinition
();
parent\parent\Common\TypeSystem\Common\TypeSystemHelpers.cs (1)
147
openTargetOrBase = openTargetOrBase.
GetTypeDefinition
();
parent\parent\Common\TypeSystem\Common\Utilities\CSharpTypeNameFormatter.cs (1)
115
AppendInstantiatedType(sb, (DefType)type.
GetTypeDefinition
(), type.Instantiation, ref argumentIndex);
parent\parent\Common\TypeSystem\Common\Utilities\CustomAttributeTypeNameFormatter.cs (1)
108
IAssemblyDesc homeAssembly = AppendName(sb, type.
GetTypeDefinition
(), false);
parent\parent\Common\TypeSystem\Common\Utilities\DebugNameFormatter.cs (1)
235
AppendName(sb, type.
GetTypeDefinition
(), options);
parent\parent\Common\TypeSystem\Common\Utilities\ExceptionTypeNameFormatter.cs (1)
79
AppendName(sb, type.
GetTypeDefinition
());
parent\parent\Common\TypeSystem\Ecma\EcmaModule.cs (1)
645
Instantiation newSubstitution = typeDescToInspect.
GetTypeDefinition
().BaseType.Instantiation;
parent\parent\Common\TypeSystem\Ecma\EcmaSignatureEncoder.cs (1)
163
encoder.GenericInstantiation(_entityHandleProvider.GetTypeDefOrRefHandleForTypeDesc(type.
GetTypeDefinition
()), type.Instantiation.Length, type.IsValueType);
parent\parent\Common\TypeSystem\Ecma\EffectiveVisibility.cs (1)
142
var definitionType = type.
GetTypeDefinition
();
parent\parent\Common\TypeSystem\IL\ILDisassembler.cs (1)
513
AppendName(sb, type.
GetTypeDefinition
());
parent\parent\Common\TypeSystem\IL\UnsafeAccessors.cs (1)
398
var instType = targetType.Context.GetInstantiatedType((MetadataType)targetType.
GetTypeDefinition
(), declClassInst);
parent\parent\Common\TypeSystem\RuntimeDetermined\DefType.RuntimeDetermined.cs (2)
37
MetadataType typeDefinition = (MetadataType)
GetTypeDefinition
();
53
TypeDesc typeDefinition =
GetTypeDefinition
();
parent\parent\Common\TypeSystem\RuntimeDetermined\RuntimeDeterminedType.cs (1)
173
return Context.GetRuntimeDeterminedType((DefType)_rawCanonType.
GetTypeDefinition
(), _runtimeDeterminedDetailsType);