167 references to HasInstantiation
ILCompiler.Compiler (73)
Compiler\Compilation.cs (2)
529
if (runtimeDeterminedBaseTypeDefinition.
HasInstantiation
)
540
Debug.Assert(runtimeDeterminedOwningType.
HasInstantiation
);
Compiler\CompilerTypeSystemContext.Aot.cs (1)
186
if (interfaceType.
HasInstantiation
)
Compiler\CompilerTypeSystemContext.GeneratedAssembly.cs (1)
138
Debug.Assert(!
HasInstantiation
, "Why is this generic?");
Compiler\Dataflow\CompilerGeneratedState.cs (1)
357
if (generatedType.
HasInstantiation
) {
Compiler\Dataflow\GenericArgumentDataFlow.cs (3)
58
if (!type.
HasInstantiation
)
140
if (genericArgument.
HasInstantiation
)
188
if (type.
HasInstantiation
)
Compiler\Dataflow\InterproceduralState.cs (1)
94
if (methodIL.OwningMethod.HasInstantiation || methodIL.OwningMethod.OwningType.
HasInstantiation
)
Compiler\Dataflow\MethodBodyScanner.cs (1)
952
if (type.
HasInstantiation
&& !type.IsGenericDefinition && type.IsTypeOf(ILLink.Shared.TypeSystemProxy.WellKnownType.System_Nullable_T))
Compiler\Dataflow\ReflectionMethodBodyScanner.cs (1)
471
if (type.
HasInstantiation
&& _annotations.HasGenericParameterAnnotation(type))
Compiler\DependencyAnalysis\CodeBasedDependencyAlgorithm.cs (1)
72
return method.HasInstantiation || method.OwningType.
HasInstantiation
;
Compiler\DependencyAnalysis\EETypeNode.cs (1)
1131
if (_type.
HasInstantiation
)
Compiler\DependencyAnalysis\GenericDictionaryNode.cs (1)
171
Debug.Assert(owningType.
HasInstantiation
);
Compiler\DependencyAnalysis\GenericStaticBaseInfoNode.cs (1)
23
Debug.Assert(type.
HasInstantiation
);
Compiler\DependencyAnalysis\GenericTypesHashtableNode.cs (1)
49
if (!type.
HasInstantiation
|| type.IsGenericDefinition || type.IsCanonicalSubtype(CanonicalFormKind.Any))
Compiler\DependencyAnalysis\GenericTypesTemplateMap.cs (1)
112
if (!type.
HasInstantiation
&& !IsArrayTypeEligibleForTemplate(type))
Compiler\DependencyAnalysis\GenericVarianceNode.cs (1)
80
Debug.Assert(typeDefinition.
HasInstantiation
);
Compiler\DependencyAnalysis\NativeLayoutVertexNode.cs (3)
339
if (type.
HasInstantiation
&& !type.IsGenericDefinition)
445
Debug.Assert(type.
HasInstantiation
&& !type.IsGenericDefinition);
481
Debug.Assert(!type.
HasInstantiation
|| type.IsGenericDefinition);
Compiler\DependencyAnalysis\ReadyToRunGenericHelperNode.cs (1)
43
(dictionaryOwner is TypeDesc type && type.
HasInstantiation
)
Compiler\DependencyAnalysis\ReflectedFieldNode.cs (1)
93
if (_field.OwningType.
HasInstantiation
)
Compiler\DependencyAnalysis\ReflectionFieldMapNode.cs (2)
69
if (field.OwningType.
HasInstantiation
)
108
if (field.OwningType.
HasInstantiation
)
Compiler\DependencyAnalysis\ReflectionVirtualInvokeMapNode.cs (1)
67
if (containingTypeOfDeclaringMethodForSlot.
HasInstantiation
)
Compiler\DependencyAnalysis\ScannedMethodNode.cs (1)
90
public override bool InterestingForDynamicDependencyAnalysis => _method.HasInstantiation || _method.OwningType.
HasInstantiation
;
Compiler\DependencyAnalysis\StaticsInfoHashtableNode.cs (1)
45
Debug.Assert(metadataType.
HasInstantiation
&& !metadataType.IsCanonicalSubtype(CanonicalFormKind.Any));
Compiler\DependencyAnalysis\VariantInterfaceMethodUseNode.cs (1)
80
implementedInterface.
HasInstantiation
)
Compiler\ILScanner.cs (1)
647
if (!baseType.
HasInstantiation
)
Compiler\LibraryRootProvider.cs (1)
40
if (!type.
HasInstantiation
)
Compiler\Logging\DocumentationSignatureGenerator.PartVisitor.cs (1)
239
if (!containingType.
HasInstantiation
|| containingType.Instantiation.Length > type.Instantiation.Length)
Compiler\MetadataManager.cs (1)
950
if (owningTypeToGenerateMetadataFor.
HasInstantiation
Compiler\MethodBodyDeduplicator.cs (1)
26
if (!_genericsOnly || method.HasInstantiation || method.OwningType.
HasInstantiation
)
Compiler\MultiFileCompilationModuleGroup.cs (2)
105
return (type.
HasInstantiation
|| type.IsArray) && ShouldProduceFullVTable(type) &&
117
return owningType.IsDefType && !owningType.
HasInstantiation
&& !method.HasInstantiation;
Compiler\RootingHelpers.cs (1)
207
if (typicalField.OwningType.
HasInstantiation
)
Compiler\TypePreinit.cs (2)
2458
|| type.
HasInstantiation
2625
|| type.
HasInstantiation
Compiler\UsageBasedMetadataManager.cs (4)
419
if (type.
HasInstantiation
&& !type.IsGenericDefinition && !IsReflectionBlocked(type))
489
if (type.
HasInstantiation
&& !type.IsTypeDefinition && !IsReflectionBlocked(type))
584
if (canonDelegateType.
HasInstantiation
)
606
if (canonDelegateType.
HasInstantiation
)
Compiler\UserDefinedTypeDescriptor.cs (1)
513
if (type.
HasInstantiation
)
Compiler\VirtualMethodCallHelper.cs (2)
197
return type.
HasInstantiation
;
199
return type.
HasInstantiation
&&
IL\ILImporter.Scanner.cs (2)
334
if (method.HasInstantiation || method.OwningType.
HasInstantiation
)
858
else if (_constrained.
HasInstantiation
)
parent\parent\Common\Compiler\AsyncMethodVariant.cs (1)
40
builder.ReturnType = md.
HasInstantiation
? md.Instantiation[0] : this.Context.GetWellKnownType(WellKnownType.Void);
parent\parent\Common\Compiler\CompilerTypeSystemContext.Async.cs (1)
46
if (!originalMethod.Signature.ReturnType.
HasInstantiation
parent\parent\Common\Compiler\CompilerTypeSystemContext.BoxedTypes.cs (2)
357
if (method.OwningType.
HasInstantiation
)
572
if (owner.
HasInstantiation
)
parent\parent\Common\Compiler\CompilerTypeSystemContext.Validation.cs (1)
339
else if (type.
HasInstantiation
)
parent\parent\Common\Compiler\Dataflow\TypeProxy.cs (1)
23
if (!typeDef.
HasInstantiation
)
parent\parent\Common\Compiler\DependencyAnalysis\GVMDependenciesNode.cs (1)
140
if (methodOwningType.
HasInstantiation
)
parent\parent\Common\Compiler\HardwareIntrinsicHelpers.cs (1)
22
if (owningType.IsIntrinsic && !owningType.
HasInstantiation
)
parent\parent\Common\Compiler\TypeExtensions.cs (1)
555
Debug.Assert(interfaceType.
HasInstantiation
);
parent\parent\Common\Internal\Runtime\EETypeBuilderHelpers.cs (1)
97
if (type.
HasInstantiation
)
parent\parent\Common\TypeSystem\IL\Stubs\AsyncThunks.cs (3)
32
if (returnType.
HasInstantiation
)
77
if (asyncMethod.OwningType.
HasInstantiation
)
257
if (asyncVariantTarget.OwningType.
HasInstantiation
)
parent\parent\Common\TypeSystem\IL\Stubs\ComparerIntrinsics.cs (1)
85
(type.IsRuntimeDeterminedSubtype && !type.
HasInstantiation
))
parent\parent\Common\TypeSystem\IL\Stubs\DelegateMethodILEmitter.cs (1)
72
if (method.OwningType.
HasInstantiation
)
parent\parent\Common\TypeSystem\IL\Stubs\MethodBaseGetCurrentMethodThunk.cs (1)
79
if (Method.OwningType.
HasInstantiation
)
parent\parent\Common\TypeSystem\IL\Stubs\TypeGetTypeMethodThunk.cs (1)
177
if (signature.Length > 1 && signature[1].
HasInstantiation
)
parent\parent\Common\TypeSystem\Interop\IL\MarshalHelpers.cs (4)
537
if (type.
HasInstantiation
)
654
if (type.
HasInstantiation
)
669
if (type.
HasInstantiation
)
879
if (!type.
HasInstantiation
)
src\runtime\src\coreclr\tools\Common\Compiler\GenericCycleDetection\GraphBuilder.cs (3)
25
if (type.
HasInstantiation
)
45
if (processType.
HasInstantiation
&& processType is EcmaType ecmaProcessType)
131
else if (t.
HasInstantiation
)
src\runtime\src\coreclr\tools\Common\Compiler\GenericCycleDetection\GraphBuilder.ForEach.cs (1)
56
if (!type.
HasInstantiation
|| type.IsGenericDefinition)
ILCompiler.MetadataTransform (1)
ILCompiler\Metadata\Transform.Type.cs (1)
309
if (entity.
HasInstantiation
)
ILCompiler.ReadyToRun (61)
Compiler\DependencyAnalysis\ArrayInterfaceMethodsNode.cs (1)
56
if (!interfaceType.
HasInstantiation
)
Compiler\DependencyAnalysis\InheritedVirtualMethodsNode.cs (1)
72
if (!impl.OwningType.
HasInstantiation
|| !HasNonCanonicalInstantiationArguments(impl.OwningType))
Compiler\DependencyAnalysis\ReadyToRun\CopiedMethodILNode.cs (1)
77
if (method.HasInstantiation || method.OwningType.
HasInstantiation
)
Compiler\DependencyAnalysis\ReadyToRun\DelegateCtorSignature.cs (1)
50
needsInstantiatingStub |= (_targetMethod.Method.OwningType.
HasInstantiation
|| _methodToken.ConstrainedType != null);
Compiler\DependencyAnalysis\ReadyToRun\InstanceEntryPointTableNode.cs (1)
120
Debug.Assert(method.Method.HasInstantiation || method.Method.OwningType.
HasInstantiation
|| method.Method.IsAsyncVariant() ||
Compiler\DependencyAnalysis\ReadyToRun\MethodFixupSignature.cs (1)
141
if (!_method.Method.HasInstantiation && !_method.Method.OwningType.
HasInstantiation
&& !_method.Method.OwningType.IsArray)
Compiler\DependencyAnalysis\ReadyToRun\SignatureBuilder.cs (1)
204
if (typeDesc.
HasInstantiation
&& !typeDesc.IsGenericDefinition)
Compiler\DependencyAnalysis\ReadyToRun\TypeFixupSignature.cs (1)
208
if (_typeDesc.
HasInstantiation
&&
Compiler\DependencyAnalysis\ReadyToRun\TypeValidationChecker.cs (6)
145
if (interfaceType.
HasInstantiation
)
279
if (type.
HasInstantiation
)
298
if (type.
HasInstantiation
)
313
if (type.IsInterface && type.
HasInstantiation
&& (method.IsVirtual || !method.Signature.IsStatic))
347
if (type.
HasInstantiation
&& type.IsInterface)
351
if (interfaceType.
HasInstantiation
)
Compiler\ExternalReferenceTokenManager.cs (2)
125
if (methodDesc.HasInstantiation || methodDesc.OwningType.
HasInstantiation
)
166
else if (type.
HasInstantiation
)
Compiler\ReadyToRunCompilationModuleGroupBase.cs (5)
149
if (!method.HasInstantiation && !method.OwningType.
HasInstantiation
)
466
if (!(method.HasInstantiation || method.OwningType.
HasInstantiation
))
569
if (!versionsWithType && !usesCanon && (t.
HasInstantiation
&& !(t is EcmaType etype && etype.Module != methodDefiningModule)))
576
if (!versionsWithType && !usesCanon && (t.
HasInstantiation
&& !(t is EcmaType etype && etype.Module != methodDefiningModule)))
874
if (type.
HasInstantiation
)
Compiler\ReadyToRunLibraryRootProvider.cs (1)
32
if (type.
HasInstantiation
)
Compiler\ReadyToRunMetadataFieldLayoutAlgorithm.cs (2)
298
if (defType.
HasInstantiation
)
376
if (defType.
HasInstantiation
)
Compiler\ReadyToRunTableManager.cs (1)
88
if (method.HasInstantiation || method.OwningType.
HasInstantiation
|| method.IsAsyncVariant() || method is AsyncResumptionStub ||
Compiler\ReadyToRunTypeMapEncoding.cs (1)
56
if (type.
HasInstantiation
)
Compiler\ReadyToRunVisibilityRootProvider.cs (1)
32
if (type.
HasInstantiation
)
Compiler\ReadyToRunXmlRootProvider.cs (2)
114
if (type.
HasInstantiation
)
195
if (type.
HasInstantiation
)
JitInterface\CorInfoImpl.ReadyToRun.cs (6)
1696
bool typeHasInstantiation = type.
HasInstantiation
;
1729
if (instantiationType.
HasInstantiation
&& IsGenericTooDeeplyNested(instantiationType.Instantiation, nestingLevel + 1))
1962
if (originalMethod.OwningType.
HasInstantiation
&& IsGenericTooDeeplyNested(originalMethod.OwningType.Instantiation))
2294
if (isStaticVirtual && exactType.
HasInstantiation
)
2498
if (callerMethod.HasInstantiation || callerMethod.OwningType.
HasInstantiation
)
2717
if (type.
HasInstantiation
&& !type.IsGenericDefinition)
parent\parent\Common\Compiler\AsyncMethodVariant.cs (1)
40
builder.ReturnType = md.
HasInstantiation
? md.Instantiation[0] : this.Context.GetWellKnownType(WellKnownType.Void);
parent\parent\Common\Compiler\CompilerTypeSystemContext.Async.cs (1)
46
if (!originalMethod.Signature.ReturnType.
HasInstantiation
parent\parent\Common\Compiler\CompilerTypeSystemContext.BoxedTypes.cs (2)
357
if (method.OwningType.
HasInstantiation
)
572
if (owner.
HasInstantiation
)
parent\parent\Common\Compiler\CompilerTypeSystemContext.Validation.cs (1)
339
else if (type.
HasInstantiation
)
parent\parent\Common\Compiler\Dataflow\TypeProxy.cs (1)
23
if (!typeDef.
HasInstantiation
)
parent\parent\Common\Compiler\DependencyAnalysis\GVMDependenciesNode.cs (1)
140
if (methodOwningType.
HasInstantiation
)
parent\parent\Common\Compiler\HardwareIntrinsicHelpers.cs (1)
22
if (owningType.IsIntrinsic && !owningType.
HasInstantiation
)
parent\parent\Common\Compiler\TypeExtensions.cs (1)
555
Debug.Assert(interfaceType.
HasInstantiation
);
parent\parent\Common\JitInterface\CorInfoImpl.cs (3)
3133
else if (toType.
HasInstantiation
)
3253
return type.
HasInstantiation
? TypeCompareState.Must : TypeCompareState.MustNot;
4885
if (!isFallbackBodyCompilation && (this.MethodBeingCompiled.HasInstantiation || this.MethodBeingCompiled.OwningType.
HasInstantiation
)) // No generics involved
parent\parent\Common\TypeSystem\IL\Stubs\AsyncThunks.cs (3)
32
if (returnType.
HasInstantiation
)
77
if (asyncMethod.OwningType.
HasInstantiation
)
257
if (asyncVariantTarget.OwningType.
HasInstantiation
)
parent\parent\Common\TypeSystem\IL\Stubs\ComparerIntrinsics.cs (1)
85
(type.IsRuntimeDeterminedSubtype && !type.
HasInstantiation
))
parent\parent\Common\TypeSystem\Interop\IL\MarshalHelpers.cs (4)
537
if (type.
HasInstantiation
)
654
if (type.
HasInstantiation
)
669
if (type.
HasInstantiation
)
879
if (!type.
HasInstantiation
)
PortableCallHelpers\InternalCallSignatureCollector.cs (1)
75
if (method.HasInstantiation || method.OwningType.
HasInstantiation
)
PortableCallHelpers\PInvokeCollector.cs (1)
153
if (type.
HasInstantiation
)
src\runtime\src\coreclr\tools\Common\Compiler\GenericCycleDetection\GraphBuilder.cs (3)
25
if (type.
HasInstantiation
)
45
if (processType.
HasInstantiation
&& processType is EcmaType ecmaProcessType)
131
else if (t.
HasInstantiation
)
src\runtime\src\coreclr\tools\Common\Compiler\GenericCycleDetection\GraphBuilder.ForEach.cs (1)
56
if (!type.
HasInstantiation
|| type.IsGenericDefinition)
ILCompiler.RyuJit (7)
Compiler\DependencyAnalysis\MethodCodeNode.cs (1)
58
public override bool InterestingForDynamicDependencyAnalysis => _method.HasInstantiation || _method.OwningType.
HasInstantiation
;
JitInterface\CorInfoImpl.RyuJit.cs (3)
432
else if (constrainedType.
HasInstantiation
)
1181
if (method.HasInstantiation || method.OwningType.
HasInstantiation
)
1410
else if (runtimeDeterminedConstrainedType.
HasInstantiation
)
parent\parent\Common\JitInterface\CorInfoImpl.cs (3)
3133
else if (toType.
HasInstantiation
)
3253
return type.
HasInstantiation
? TypeCompareState.Must : TypeCompareState.MustNot;
4885
if (!isFallbackBodyCompilation && (this.MethodBeingCompiled.HasInstantiation || this.MethodBeingCompiled.OwningType.
HasInstantiation
)) // No generics involved
ILCompiler.TypeSystem (25)
parent\parent\Common\TypeSystem\Canon\InstantiatedMethod.Canon.cs (1)
97
if (OwningType.
HasInstantiation
&& OwningType.IsCanonicalSubtype(policy))
parent\parent\Common\TypeSystem\Canon\StandardCanonicalizationAlgorithm.cs (1)
104
else if (typeToConvert.
HasInstantiation
)
parent\parent\Common\TypeSystem\Common\CastingHelper.cs (1)
429
bool arrayCovariance = thisType.IsSzArray && otherType.
HasInstantiation
;
parent\parent\Common\TypeSystem\Common\CastingHelper.TypeEquivalence.cs (3)
55
if (thisType.
HasInstantiation
&& otherType.
HasInstantiation
)
70
if (thisType.
HasInstantiation
)
parent\parent\Common\TypeSystem\Common\ConstructedTypeRewritingHelpers.cs (2)
28
if (type.
HasInstantiation
)
78
if (type.
HasInstantiation
)
parent\parent\Common\TypeSystem\Common\MetadataFieldLayoutAlgorithm.cs (1)
25
if (type.
HasInstantiation
&& type.IsExplicitLayout)
parent\parent\Common\TypeSystem\Common\MetadataVirtualMethodAlgorithm.cs (1)
910
if (!interfaceMT.
HasInstantiation
parent\parent\Common\TypeSystem\Common\TypeDesc.cs (1)
678
return
HasInstantiation
&& IsTypeDefinition;
parent\parent\Common\TypeSystem\Common\TypeDesc.TypeEquivalence.cs (2)
58
if (
HasInstantiation
)
91
if (
HasInstantiation
)
parent\parent\Common\TypeSystem\Common\TypeSystemConstraintsHelpers.cs (1)
181
if (arg.
HasInstantiation
)
parent\parent\Common\TypeSystem\Common\TypeSystemHelpers.cs (4)
132
if (!method.HasInstantiation && !method.OwningType.
HasInstantiation
)
233
Debug.Assert(!type.
HasInstantiation
);
258
if (owner.
HasInstantiation
)
277
if (owner.
HasInstantiation
)
parent\parent\Common\TypeSystem\Ecma\EcmaModule.cs (1)
637
if (!baseType.
HasInstantiation
)
parent\parent\Common\TypeSystem\Ecma\EcmaSignatureEncoder.cs (1)
161
else if (type.
HasInstantiation
&& !type.IsGenericDefinition)
parent\parent\Common\TypeSystem\IL\ILDisassembler.cs (1)
65
if (typeInContext.
HasInstantiation
|| forceValueClassPrefix)
parent\parent\Common\TypeSystem\IL\InstantiatedMethodIL.cs (1)
20
Debug.Assert(owningMethod.HasInstantiation || owningMethod.OwningType.
HasInstantiation
);
parent\parent\Common\TypeSystem\IL\UnsafeAccessors.cs (1)
395
if (targetType.
HasInstantiation
)
parent\parent\Common\TypeSystem\RuntimeDetermined\RuntimeDeterminedCanonicalizationAlgorithm.cs (1)
96
else if (typeToConvert.
HasInstantiation
)
parent\parent\Common\TypeSystem\RuntimeDetermined\RuntimeDeterminedType.cs (1)
171
if (_rawCanonType.
HasInstantiation
)