89 references to IsGenericDefinition
ILCompiler.Compiler (61)
Compiler\Compilation.cs (1)
287if (type.IsGenericDefinition && NodeFactory.DevirtualizationManager.IsGenericDefinitionMethodTableReflectionVisible(type))
Compiler\Dataflow\HandleCallAction.cs (5)
73if (!typeInstantiated.IsGenericDefinition) 152else if (!methodInstantiated.OwningType.IsGenericDefinition 268&& !systemTypeValue.RepresentedType.Type.IsGenericDefinition 304&& !systemTypeValue.RepresentedType.Type.IsGenericDefinition 337&& !systemTypeValue.RepresentedType.Type.IsGenericDefinition
Compiler\Dataflow\MethodBodyScanner.cs (1)
952if (type.HasInstantiation && !type.IsGenericDefinition && type.IsTypeOf(ILLink.Shared.TypeSystemProxy.WellKnownType.System_Nullable_T))
Compiler\DependencyAnalysis\ConstructedEETypeNode.cs (1)
113if (type.IsGenericDefinition)
Compiler\DependencyAnalysis\GCStaticsNode.cs (1)
22Debug.Assert(!type.IsGenericDefinition);
Compiler\DependencyAnalysis\GenericDefinitionEETypeNode.cs (1)
17Debug.Assert(type.IsGenericDefinition);
Compiler\DependencyAnalysis\GenericTypesHashtableNode.cs (1)
49if (!type.HasInstantiation || type.IsGenericDefinition || type.IsCanonicalSubtype(CanonicalFormKind.Any))
Compiler\DependencyAnalysis\NativeLayoutVertexNode.cs (5)
339if (type.HasInstantiation && !type.IsGenericDefinition) 445Debug.Assert(type.HasInstantiation && !type.IsGenericDefinition); 481Debug.Assert(!type.HasInstantiation || type.IsGenericDefinition); 491new DependencyListEntry(_type.IsGenericDefinition ? context.NecessaryTypeSymbol(_type) : context.MaximallyConstructableType(_type), 1438if (_method.IsVirtual && _method.HasInstantiation && !_method.IsGenericMethodDefinition && !_method.OwningType.IsGenericDefinition)
Compiler\DependencyAnalysis\NodeFactory.cs (5)
424Debug.Assert(method.OwningType.IsGenericDefinition || !VTable(method.OwningType).HasKnownVirtualMethodUse); 652if (type.IsGenericDefinition) 679if (type.IsGenericDefinition) 699Debug.Assert(!type.IsGenericDefinition); 820else if (type.IsGenericDefinition)
Compiler\DependencyAnalysis\NonGCStaticsNode.cs (1)
28Debug.Assert(!type.IsGenericDefinition);
Compiler\DependencyAnalysis\ReflectedDelegateNode.cs (1)
30|| delegateType.IsGenericDefinition
Compiler\DependencyAnalysis\ReflectedFieldNode.cs (1)
41if (_field.OwningType.IsGenericDefinition || _field.IsLiteral)
Compiler\DependencyAnalysis\RuntimeMethodHandleNode.cs (2)
25|| targetMethod.OwningType.IsGenericDefinition 53if (!_targetMethod.IsMethodDefinition && !_targetMethod.OwningType.IsGenericDefinition
Compiler\DependencyAnalysis\ThreadStaticsNode.cs (1)
24Debug.Assert(!type.IsGenericDefinition);
Compiler\DependencyAnalysis\VariantInterfaceMethodUseNode.cs (1)
49Debug.Assert(!implementedInterface.IsGenericDefinition);
Compiler\DependencyAnalysis\VTableSliceNode.cs (1)
25Debug.Assert(!type.IsGenericDefinition);
Compiler\ILScanner.cs (1)
774Debug.Assert(type.IsGenericDefinition);
Compiler\MetadataManager.cs (1)
874Debug.Assert(!method.IsGenericMethodDefinition && !method.OwningType.IsGenericDefinition);
Compiler\PreinitializationManager.cs (1)
96if (type.IsGenericDefinition)
Compiler\RootingHelpers.cs (5)
32if (type.IsGenericDefinition) 141if (typicalMethod.IsGenericMethodDefinition || typicalMethod.OwningType.IsGenericDefinition) 151if (method.OwningType.IsGenericDefinition || method.OwningType.ContainsSignatureVariables(treatGenericParameterLikeSignatureVariable: true)) 216if (field.OwningType.IsGenericDefinition || field.OwningType.ContainsSignatureVariables(treatGenericParameterLikeSignatureVariable: true)) 268if (type.IsGenericDefinition)
Compiler\RootingServiceProvider.cs (3)
88Debug.Assert(!type.IsGenericDefinition); 103Debug.Assert(!type.IsGenericDefinition); 118Debug.Assert(!type.IsGenericDefinition);
Compiler\SubstitutedILProvider.cs (3)
1027if (type1.IsGenericDefinition || type2.IsGenericDefinition) 1047if (knownType.IsGenericDefinition)
Compiler\TypePreinit.cs (1)
71Debug.Assert(!type.IsGenericDefinition);
Compiler\UsageBasedMetadataManager.cs (5)
163if (!field.OwningType.IsGenericDefinition && !field.IsLiteral) 183if (!field.OwningType.IsGenericDefinition) 200if (!method.IsGenericMethodDefinition && !method.OwningType.IsGenericDefinition) 419if (type.HasInstantiation && !type.IsGenericDefinition && !IsReflectionBlocked(type)) 884if (method.IsGenericMethodDefinition || method.OwningType.IsGenericDefinition)
IL\ILImporter.Scanner.cs (1)
1192if (!typeEqualityCheckType.IsGenericDefinition
parent\parent\Common\Compiler\CompilerTypeSystemContext.Validation.cs (3)
225if (!method.IsGenericMethodDefinition && !owningType.IsGenericDefinition) 277if (parameterType.IsGenericDefinition) 330if (type.IsGenericDefinition)
parent\parent\Common\Compiler\TypeExtensions.cs (2)
560!interfaceType.IsGenericDefinition && 562!constrainedType.IsGenericDefinition)
parent\parent\Common\Internal\Runtime\EETypeBuilderHelpers.cs (1)
69if (type.IsGenericDefinition)
parent\parent\Common\TypeSystem\IL\Stubs\ComparerIntrinsics.cs (1)
262if (type.IsGenericDefinition)
parent\parent\Common\TypeSystem\Interop\IL\InlineArrayType.cs (1)
177Debug.Assert(!elementType.IsGenericDefinition);
parent\parent\Common\TypeSystem\Interop\IL\Marshaller.Aot.cs (1)
1221if (marshallerType.IsGenericDefinition)
parent\parent\Common\TypeSystem\Interop\IL\NativeStructType.cs (1)
182Debug.Assert(!managedStructType.IsGenericDefinition);
src\runtime\src\coreclr\tools\Common\Compiler\GenericCycleDetection\GraphBuilder.ForEach.cs (1)
56if (!type.HasInstantiation || type.IsGenericDefinition)
ILCompiler.ReadyToRun (22)
Compiler\DependencyAnalysis\InheritedVirtualMethodsNode.cs (2)
30Debug.Assert(!type.IsGenericDefinition); 75Debug.Assert(!canonImpl.OwningType.IsGenericDefinition);
Compiler\DependencyAnalysis\ReadyToRun\MethodFixupSignature.cs (2)
83!Method.OwningType.IsGenericDefinition && 102!Method.OwningType.IsGenericDefinition)
Compiler\DependencyAnalysis\ReadyToRun\SignatureBuilder.cs (1)
204if (typeDesc.HasInstantiation && !typeDesc.IsGenericDefinition)
Compiler\DependencyAnalysis\ReadyToRun\TypeFixupSignature.cs (2)
209!_typeDesc.IsGenericDefinition && 231if (factory.OptimizationFlags.OptimizeAsyncMethods && type.GetTypeDefinition() == context.AsyncStateMachineBoxType && !type.IsGenericDefinition && factory.CompilationCurrentPhase <= 7)
Compiler\DependencyAnalysis\ReadyToRunCodegenNodeFactory.cs (1)
237if (!type.IsGenericDefinition &&
Compiler\ProfileDataManager.cs (1)
423if (type.IsGenericDefinition)
Compiler\ReadyToRunProfilingRootProvider.cs (2)
38if (method.OwningType.IsGenericDefinition || method.OwningType.ContainsSignatureVariables()) 51if (t.IsGenericDefinition)
JitInterface\CorInfoImpl.ReadyToRun.cs (4)
1660if (type.IsGenericDefinition) 1678if (type.IsGenericDefinition) 1939if (type.IsGenericDefinition) 2717if (type.HasInstantiation && !type.IsGenericDefinition)
parent\parent\Common\Compiler\CompilerTypeSystemContext.Validation.cs (3)
225if (!method.IsGenericMethodDefinition && !owningType.IsGenericDefinition) 277if (parameterType.IsGenericDefinition) 330if (type.IsGenericDefinition)
parent\parent\Common\Compiler\TypeExtensions.cs (2)
560!interfaceType.IsGenericDefinition && 562!constrainedType.IsGenericDefinition)
parent\parent\Common\TypeSystem\IL\Stubs\ComparerIntrinsics.cs (1)
262if (type.IsGenericDefinition)
src\runtime\src\coreclr\tools\Common\Compiler\GenericCycleDetection\GraphBuilder.ForEach.cs (1)
56if (!type.HasInstantiation || type.IsGenericDefinition)
ILCompiler.RyuJit (1)
Compiler\DependencyAnalysis\MethodCodeNode.cs (1)
35Debug.Assert(!method.IsGenericMethodDefinition && !method.OwningType.IsGenericDefinition);
ILCompiler.TypeSystem (5)
parent\parent\Common\TypeSystem\Common\MetadataFieldLayoutAlgorithm.cs (1)
19if (type.IsGenericDefinition)
parent\parent\Common\TypeSystem\Common\MetadataVirtualMethodAlgorithm.cs (1)
947consideredInterfaces[consideredInterfaces.Length - 1] = currentType.IsGenericDefinition ? (DefType)currentType.InstantiateAsOpen() : currentType;
parent\parent\Common\TypeSystem\Common\TypeSystemHelpers.cs (1)
231if (!type.IsGenericDefinition)
parent\parent\Common\TypeSystem\Ecma\EcmaSignatureEncoder.cs (1)
161else if (type.HasInstantiation && !type.IsGenericDefinition)
parent\parent\Common\TypeSystem\RuntimeDetermined\DefType.RuntimeDetermined.cs (1)
16if (IsGenericDefinition)