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