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