6 overrides of Instantiation
ILCompiler.Compiler (2)
parent\parent\Common\Compiler\CompilerTypeSystemContext.BoxedTypes.cs (1)
239
public override Instantiation
Instantiation
=> ValueTypeRepresented.Instantiation;
parent\parent\Common\TypeSystem\Interop\IL\InlineArrayType.cs (1)
65
public override Instantiation
Instantiation
ILCompiler.ReadyToRun (1)
parent\parent\Common\Compiler\CompilerTypeSystemContext.BoxedTypes.cs (1)
239
public override Instantiation
Instantiation
=> ValueTypeRepresented.Instantiation;
ILCompiler.TypeSystem (3)
parent\parent\Common\TypeSystem\Common\InstantiatedType.cs (1)
56
public override Instantiation
Instantiation
parent\parent\Common\TypeSystem\Ecma\EcmaType.cs (1)
103
public override Instantiation
Instantiation
parent\parent\Common\TypeSystem\RuntimeDetermined\RuntimeDeterminedType.cs (1)
87
public override Instantiation
Instantiation
304 references to Instantiation
ILCompiler.Compiler (151)
Compiler\Compilation.cs (3)
351
type = type.
Instantiation
[0];
414
targetOfLookup = type.
Instantiation
[0];
531
runtimeDeterminedOwningType = runtimeDeterminedBaseTypeDefinition.InstantiateSignature(runtimeDeterminedOwningType.
Instantiation
, default);
Compiler\CompilerTypeSystemContext.Aot.cs (3)
94
TypeDesc elementType = type.IsSzArray ? ((ArrayType)type).ElementType : type.
Instantiation
[0];
149
if (!type.IsInterface || type.
Instantiation
.Length != 1)
174
if (!type.IsInterface || type.
Instantiation
.Length != 1)
Compiler\Dataflow\CompilerGeneratedState.cs (5)
405
var typeArgs = new GenericParameterDesc?[generatedType.
Instantiation
.Length];
415
TypeDesc instantiatedType = typeRef.InstantiateSignature(method.OwningType.
Instantiation
, method.Instantiation);
416
for (int i = 0; i < instantiatedType.
Instantiation
.Length; i++)
418
var typeArg = instantiatedType.
Instantiation
[i];
420
GenericParameterDesc? userAttrs = generatedType.
Instantiation
[i] as GenericParameterDesc;
Compiler\Dataflow\FlowAnnotations.cs (3)
911
if (Type.
Instantiation
[genericParameterIndex] == genericParameter)
1031
var innerGenericArgument = genericArgumentType.
Instantiation
.Length == 1 ? genericArgumentType.
Instantiation
[0] : null;
Compiler\Dataflow\GenericArgumentDataFlow.cs (5)
37
contextType.
Instantiation
,
45
ProcessGenericArgumentDataFlow(ref dependencies, factory, origin, type, contextMethod.OwningType.
Instantiation
, contextMethod.Instantiation);
103
ProcessGenericInstantiation(diagnosticContext, reflectionMarker, type.
Instantiation
, typeDefinition.
Instantiation
);
190
foreach (TypeDesc typeParameter in type.
Instantiation
)
Compiler\Dataflow\HandleCallAction.cs (10)
79
AddDependenciesFromConstraintUse(_reflectionMarker, typeInstantiated.
Instantiation
);
81
if (inst.Length == typeInstantiated.
Instantiation
.Length)
98
if (typeInstantiated.
Instantiation
.IsConstrainedToBeReferenceTypes())
113
AddDependenciesFromConstraintUse(_reflectionMarker, typeInstantiated.
Instantiation
);
653
sigInst = new TypeDesc[contextType.
Instantiation
.Length + contextMethod.Instantiation.Length];
654
defInst = new TypeDesc[contextType.
Instantiation
.Length + contextMethod.Instantiation.Length];
656
for (int j = 0; j < contextType.
Instantiation
.Length; j++)
659
defInst[j] = contextType.
Instantiation
[j];
663
sigInst[j + contextType.
Instantiation
.Length] = context.GetSignatureVariable(j, method: true);
664
defInst[j + contextType.
Instantiation
.Length] = contextMethod.Instantiation[j];
Compiler\Dataflow\MethodBodyScanner.cs (1)
954
switch (type.
Instantiation
[0])
Compiler\DependencyAnalysis\CallingConventionConverterKey.cs (2)
114
for (int i = 0; i < type.
Instantiation
.Length; i++)
118
AppendName(sb, type.
Instantiation
[i]);
Compiler\DependencyAnalysis\CodeBasedDependencyAlgorithm.cs (2)
46
owningType.
Instantiation
[0]);
51
owningType.
Instantiation
[0]);
Compiler\DependencyAnalysis\DataflowAnalyzedMethodNode.cs (1)
65
foreach (var d in n.Dependency.InstantiateDependencies(factory, method.OwningType.
Instantiation
, method.Instantiation, isConcreteInstantiation: !method.IsSharedByGenericInstantiations))
Compiler\DependencyAnalysis\EETypeNode.cs (7)
530
implMethod = implMethod.InstantiateSignature(defType.
Instantiation
, Instantiation.Empty);
1147
compositionNode = _type.
Instantiation
.Length > 1
1148
? factory.MetadataEnabledGenericComposition(_type.
Instantiation
)
1149
: factory.MaximallyMetadataEnabledType(_type.
Instantiation
[0]);
1153
compositionNode = _type.
Instantiation
.Length > 1
1154
? factory.GenericComposition(_type.
Instantiation
)
1155
: factory.NecessaryTypeSymbol(_type.
Instantiation
[0]);
Compiler\DependencyAnalysis\GenericDefinitionEETypeNode.cs (1)
48
dataBuilder.EmitInt(checked((ushort)_type.
Instantiation
.Length)); // Base size (we put instantiation length)
Compiler\DependencyAnalysis\GenericDictionaryNode.cs (4)
105
public override Instantiation TypeInstantiation => _owningType.
Instantiation
;
132
foreach (var arg in _owningType.
Instantiation
)
194
public override Instantiation TypeInstantiation => _owningMethod.OwningType.
Instantiation
;
221
foreach (var arg in _owningMethod.OwningType.
Instantiation
)
Compiler\DependencyAnalysis\GenericLookupResult.cs (5)
30
Debug.Assert(owningTypeDefinition.
Instantiation
.Length == TypeInstantiation.Length);
44
Debug.Assert(owningType.
Instantiation
.Length == TypeInstantiation.Length);
49
Debug.Assert(owningMethodDefinition.OwningType.
Instantiation
.IsNull
50
|| owningMethodDefinition.OwningType.
Instantiation
.Length == 0);
381
instantiatedType = instantiatedType.
Instantiation
[0];
Compiler\DependencyAnalysis\GenericTypesTemplateMap.cs (2)
91
Debug.Assert(type.
Instantiation
.Length == 1);
92
return factory.TypeSystemContext.GetArrayType(type.
Instantiation
[0]);
Compiler\DependencyAnalysis\GenericVarianceNode.cs (2)
85
Variance = new GenericVariance[typeDefinition.
Instantiation
.Length];
87
foreach (GenericParameterDesc param in typeDefinition.
Instantiation
)
Compiler\DependencyAnalysis\GenericVirtualMethodImplNode.cs (1)
46
_method.OwningType.
Instantiation
.CheckValidInstantiationArguments() &&
Compiler\DependencyAnalysis\InterfaceDispatchMapNode.cs (1)
241
implMethod = implMethod.InstantiateSignature(declType.
Instantiation
, Instantiation.Empty);
Compiler\DependencyAnalysis\NativeLayoutVertexNode.cs (5)
448
_instantiationArgs = new NativeLayoutTypeSignatureVertexNode[type.
Instantiation
.Length];
450
_instantiationArgs[i] = factory.NativeLayout.TypeSignatureVertex(type.
Instantiation
[i]);
899
Debug.Assert(defType.
Instantiation
.Length == 1);
900
return factory.TypeSystemContext.GetArrayType(defType.
Instantiation
[0]);
956
foreach (GenericParameterDesc genericParam in _type.GetTypeDefinition().
Instantiation
)
Compiler\DependencyAnalysis\NodeFactory.GenericLookups.cs (1)
134
return Type(type.
Instantiation
[0]);
Compiler\DependencyAnalysis\NodeFactory.NativeLayout.cs (1)
201
foreach (TypeDesc instantiationType in type.
Instantiation
)
Compiler\DependencyAnalysis\SealedVTableNode.cs (1)
215
implMethod = implMethod.InstantiateSignature(declType.
Instantiation
, Instantiation.Empty);
Compiler\DependencyAnalysis\TentativeInstanceMethodNode.cs (1)
46
owningType = owningType.
Instantiation
[0].MakeArrayType();
Compiler\DependencyAnalysis\TypeMetadataNode.cs (2)
50
foreach (GenericParameterDesc genericParameter in _type.
Instantiation
)
169
foreach (TypeDesc typeArg in type.
Instantiation
)
Compiler\DependencyAnalysis\VariantInterfaceMethodUseNode.cs (8)
58
for (int i = 0; i < interfaceDefinition.
Instantiation
.Length; i++)
60
var variantParameter = (GenericParameterDesc)interfaceDefinition.
Instantiation
[i];
67
TypeDesc variantArgument = implementedInterface.
Instantiation
[i];
86
TypeDesc elementType = providingType.IsArray ? ((ArrayType)providingType).ElementType : providingType.
Instantiation
[0];
108
for (int i = 0; i < owningTypeDefinition.
Instantiation
.Length; i++)
110
var variantParameter = (GenericParameterDesc)owningTypeDefinition.
Instantiation
[i];
117
TypeDesc variantArgument = owningType.
Instantiation
[i];
134
TypeDesc elementType = owningType.
Instantiation
[0];
Compiler\Logging\DocumentationSignatureGenerator.PartVisitor.cs (6)
171
containingArity = containingType.
Instantiation
.Length;
181
int totalArity = type.
Instantiation
.Length;
202
var typeArgument = type.
Instantiation
[i];
239
if (!containingType.HasInstantiation || containingType.
Instantiation
.Length > type.
Instantiation
.Length)
242
return (DefType)containingType.InstantiateAsOpen().InstantiateSignature(type.
Instantiation
, default);
Compiler\Logging\DocumentationSignatureParser.cs (3)
386
typeParameterIndex < typeContext?.
Instantiation
.Length)
565
var declaringArity = declaringType.
Instantiation
.Length;
566
int totalArity = nestedType.
Instantiation
.Length;
Compiler\MetadataManager.cs (5)
384
foreach (TypeDesc instArg in type.
Instantiation
)
954
foreach (Internal.TypeSystem.Ecma.EcmaGenericParameter genericParam in owningTypeToGenerateMetadataFor.
Instantiation
)
1202
if (IsReflectionBlocked(type.
Instantiation
))
1225
if (typicalFieldDefinition != field && IsReflectionBlocked(field.OwningType.
Instantiation
))
1242
if (typicalMethodDefinition != methodDefinition && IsReflectionBlocked(method.OwningType.
Instantiation
))
Compiler\RootingHelpers.cs (4)
34
Instantiation inst = TypeExtensions.GetInstantiationThatMeetsConstraints(type.
Instantiation
, allowCanon: true);
154
Instantiation inst = TypeExtensions.GetInstantiationThatMeetsConstraints(owningType.
Instantiation
, allowCanon: true);
219
Instantiation inst = TypeExtensions.GetInstantiationThatMeetsConstraints(owningType.
Instantiation
, allowCanon: true);
270
Instantiation inst = TypeExtensions.GetInstantiationThatMeetsConstraints(type.
Instantiation
, allowCanon: true);
Compiler\TypePreinit.cs (1)
1853
&& maybeSpan.
Instantiation
[0] is MetadataType readOnlySpanElementType)
Compiler\UserDefinedTypeDescriptor.cs (1)
516
foreach (TypeDesc instantiationType in type.
Instantiation
)
Compiler\VectorOfTFieldLayoutAlgorithm.cs (1)
81
VectorFieldLayoutAlgorithm.IsSupportedVectorBaseType(type.
Instantiation
[0]))
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.BoxedTypes.cs (4)
77
InstantiatedType boxedType = boxedTypeDefinition.MakeInstantiatedType(owningType.
Instantiation
);
106
InstantiatedType boxedType = boxedTypeDefinition.MakeInstantiatedType(owningType.
Instantiation
);
239
public override Instantiation Instantiation => ValueTypeRepresented.
Instantiation
;
359
InstantiatedType instantiatedType = GetInstantiatedType((MetadataType)typicalMethodTarget.OwningType, method.OwningType.
Instantiation
);
parent\parent\Common\Compiler\CompilerTypeSystemContext.Validation.cs (3)
351
if (type.
Instantiation
.Length != type.GetTypeDefinition().
Instantiation
.Length)
373
foreach (TypeDesc typeArg in defType.
Instantiation
)
parent\parent\Common\Compiler\Dataflow\ParameterProxy.cs (1)
18
: Method.Method.Signature[MetadataIndex].InstantiateSignature (Method.Method.OwningType.
Instantiation
, Method.Method.Instantiation);
parent\parent\Common\Compiler\Dataflow\TypeProxy.cs (2)
26
var builder = ImmutableArray.CreateBuilder<GenericParameterProxy>(typeDef.
Instantiation
.Length);
27
foreach (var genericParameter in typeDef.
Instantiation
)
parent\parent\Common\Compiler\DependencyAnalysis\GVMDependenciesNode.cs (1)
161
.InstantiateSignature(potentialOverrideType.
Instantiation
, _method.Instantiation);
parent\parent\Common\Compiler\DependencyAnalysis\ShadowMethodNode.cs (2)
68
Instantiation typeInst = Method.OwningType.
Instantiation
;
91
Instantiation typeInst = Method.OwningType.
Instantiation
;
parent\parent\Common\Compiler\DisplayNameHelpers.cs (3)
92
TypeDesc instantiatedType = method.Signature[i].InstantiateSignature(method.OwningType.
Instantiation
, method.Instantiation);
221
for (int i = 0; i < type.
Instantiation
.Length; i++)
226
AppendName(sb, type.
Instantiation
[i], parameterOptions);
parent\parent\Common\Compiler\NativeAotNameMangler.cs (1)
424
var inst = type.
Instantiation
;
parent\parent\Common\Compiler\ObjectWriter\TypeString.cs (2)
84
for (int i = 0; i < type.
Instantiation
.Length; i++)
88
AppendName(sb, type.
Instantiation
[i]);
parent\parent\Common\Compiler\ProcessLinkerXmlBase.cs (4)
641
type.Index < _method.OwningType.
Instantiation
.Length &&
642
_method.OwningType.
Instantiation
[type.Index] is GenericParameterDesc genericParameter)
653
for (int i = 0; i < type.
Instantiation
.Length; i++)
658
AppendName(sb, type.
Instantiation
[i]);
parent\parent\Common\Compiler\TypeExtensions.cs (3)
119
foreach (TypeDesc instantiationType in type.
Instantiation
)
209
Instantiation inst1 = type1.
Instantiation
;
212
var inst2 = type2.
Instantiation
;
parent\parent\Common\Compiler\TypeMapMetadata.cs (1)
445
TypeDesc typeMapGroup = type.
Instantiation
[0];
parent\parent\Common\Compiler\VectorFieldLayoutAlgorithm.cs (1)
150
IsSupportedVectorBaseType(type.
Instantiation
[0]))
parent\parent\Common\JitInterface\WasmLowering.cs (5)
211
VectorFieldLayoutAlgorithm.IsSupportedVectorBaseType(type.
Instantiation
[0]);
252
if (type.IsIntrinsic && (type.
Instantiation
.Length == 1) &&
253
!VectorFieldLayoutAlgorithm.IsSupportedVectorBaseType(type.
Instantiation
[0]))
302
type.
Instantiation
.Length != 1 ||
303
!VectorFieldLayoutAlgorithm.IsSupportedVectorBaseType(type.
Instantiation
[0]))
parent\parent\Common\TypeSystem\IL\NativeAotILProvider.cs (2)
261
bool? nullableOfEquatable = ComparerIntrinsics.ImplementsIEquatable(elementType.
Instantiation
[0]);
264
.MakeInstantiatedMethod(elementType.
Instantiation
[0]);
parent\parent\Common\TypeSystem\IL\Stubs\AsyncThunks.cs (1)
35
logicalReturnType = returnType.
Instantiation
[0];
parent\parent\Common\TypeSystem\IL\Stubs\ComparerIntrinsics.cs (4)
57
TypeDesc comparedType = owningType.
Instantiation
[0];
94
.MakeInstantiatedType(type.
Instantiation
[0]);
175
TypeDesc nullableType = type.
Instantiation
[0];
208
Instantiation interfaceInstantiation = implementedInterface.
Instantiation
;
parent\parent\Common\TypeSystem\IL\Stubs\DelegateMethodILEmitter.cs (2)
76
TypeDesc[] typesToReplace = new TypeDesc[method.OwningType.
Instantiation
.Length];
80
typesToReplace[i] = method.OwningType.
Instantiation
[i];
parent\parent\Common\TypeSystem\IL\Stubs\GetFieldHelperMethodOverride.cs (1)
129
? boxableFieldType.InstantiateSignature(contextMethod.OwningType.
Instantiation
, default)
parent\parent\Common\TypeSystem\MetadataEmitter\TypeSystemMetadataEmitter.cs (2)
468
blobBuilder.WriteCompressedInteger(type.
Instantiation
.Length);
469
foreach (var instantiationArg in type.
Instantiation
)
src\runtime\src\coreclr\tools\Common\Compiler\GenericCycleDetection\GraphBuilder.cs (4)
57
var specializedType = typeToSpecialize.InstantiateSignature(processType.
Instantiation
, default(Instantiation));
73
var formal = instantiatedType.GetTypeDefinition().
Instantiation
[i] as GenericParameterDesc;
103
foreach (var instType in type.
Instantiation
)
133
foreach (var instType in t.
Instantiation
)
src\runtime\src\coreclr\tools\Common\Compiler\GenericCycleDetection\GraphBuilder.ForEach.cs (2)
60
Instantiation genericTypeParameters = genericTypeDefinition.
Instantiation
;
61
Instantiation genericTypeArguments = type.
Instantiation
;
src\runtime\src\coreclr\tools\Common\Compiler\GenericCycleDetection\ModuleCycleInfo.cs (1)
190
bool result = IsDeepPossiblyCyclicInstantiation(type.
Instantiation
, ref breadthCounter, seenTypes);
ILCompiler.MetadataTransform (5)
ILCompiler\Metadata\Transform.cs (1)
57
foreach (var arg in type.
Instantiation
)
ILCompiler\Metadata\Transform.Type.cs (4)
165
for (int i = 0; i < entity.
Instantiation
.Length; i++)
167
sig.GenericTypeArguments.Add(HandleType(entity.
Instantiation
[i]));
311
record.GenericParameters.Capacity = entity.
Instantiation
.Length;
312
foreach (var p in entity.
Instantiation
)
ILCompiler.ReadyToRun (86)
Compiler\DependencyAnalysis\InheritedVirtualMethodsNode.cs (2)
121
implMethod = implMethod.InstantiateSignature(defType.
Instantiation
, Instantiation.Empty);
185
foreach (TypeDesc arg in type.
Instantiation
)
Compiler\DependencyAnalysis\ReadyToRun\TypeValidationChecker.cs (5)
567
constraintsOnDecl.Add(constraint.InstantiateSignature(declMethod.OwningType.
Instantiation
, implMethod.Instantiation).InstantiateSignature(implMethod.OwningType.
Instantiation
, new Instantiation()));
572
if (!constraintsOnDecl.Contains(constraint.InstantiateSignature(implMethod.OwningType.
Instantiation
, implMethod.Instantiation)))
725
for (index = 0; index < typeDef.
Instantiation
.Length; index++)
727
Internal.TypeSystem.GenericVariance positionForParameter = ((GenericParameterDesc)typeDef.
Instantiation
[index]).Variance;
Compiler\ExternalReferenceTokenManager.cs (1)
170
foreach (TypeDesc instParam in type.
Instantiation
)
Compiler\ReadyToRunCodegenCompilation.cs (1)
983
foreach (var type in method.OwningType.
Instantiation
)
Compiler\ReadyToRunCompilationModuleGroupBase.cs (6)
493
alternateGenericLocationModule = ComputeAlternateGenericLocationForR2RCodeFromInstantiation(methodDefiningModule, method.OwningType.
Instantiation
);
572
foreach (TypeDesc t in method.OwningType.
Instantiation
)
804
return ComputeInstantiationVersionsWithCode(type.
Instantiation
, type, VersionsWithType);
821
return ComputeInstantiationVersionsWithCode(type.
Instantiation
, type, CrossModuleInlineableType);
879
foreach (TypeDesc instParam in type.
Instantiation
)
908
entityDefinitionInstantiation = type.GetTypeDefinition().
Instantiation
;
Compiler\ReadyToRunCompilerContext.cs (2)
237
return ((MetadataType)_similarVectorOpenType).MakeInstantiatedType(vectorOfTType.
Instantiation
);
323
VectorFieldLayoutAlgorithm.IsSupportedVectorBaseType(type.
Instantiation
[0]))
Compiler\ReadyToRunLibraryRootProvider.cs (1)
148
Instantiation inst = GetInstantiationThatMeetsConstraints(type.
Instantiation
);
Compiler\ReadyToRunTypeMapEncoding.cs (1)
63
foreach (TypeDesc instantiationArgument in type.
Instantiation
)
Compiler\RuntimeDeterminedTypeHelper.cs (3)
86
!Equals(type1.
Instantiation
, type2.
Instantiation
))
182
return type.GetTypeDefinition().GetHashCode() ^ GetHashCode(type.
Instantiation
);
JitInterface\CorInfoImpl.ReadyToRun.cs (8)
220
typeInstantiation = methodContext.OwningType.
Instantiation
;
226
typeInstantiation = typeContext.
Instantiation
;
932
type = type.
Instantiation
[0];
945
type = type.
Instantiation
[0];
1729
if (instantiationType.HasInstantiation && IsGenericTooDeeplyNested(instantiationType.
Instantiation
, nestingLevel + 1))
1904
Instantiation inst = t.
Instantiation
;
1962
if (originalMethod.OwningType.HasInstantiation && IsGenericTooDeeplyNested(originalMethod.OwningType.
Instantiation
))
2719
foreach (TypeDesc instantiationArgument in type.
Instantiation
)
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.BoxedTypes.cs (4)
77
InstantiatedType boxedType = boxedTypeDefinition.MakeInstantiatedType(owningType.
Instantiation
);
106
InstantiatedType boxedType = boxedTypeDefinition.MakeInstantiatedType(owningType.
Instantiation
);
239
public override Instantiation Instantiation => ValueTypeRepresented.
Instantiation
;
359
InstantiatedType instantiatedType = GetInstantiatedType((MetadataType)typicalMethodTarget.OwningType, method.OwningType.
Instantiation
);
parent\parent\Common\Compiler\CompilerTypeSystemContext.Validation.cs (3)
351
if (type.
Instantiation
.Length != type.GetTypeDefinition().
Instantiation
.Length)
373
foreach (TypeDesc typeArg in defType.
Instantiation
)
parent\parent\Common\Compiler\Dataflow\ParameterProxy.cs (1)
18
: Method.Method.Signature[MetadataIndex].InstantiateSignature (Method.Method.OwningType.
Instantiation
, Method.Method.Instantiation);
parent\parent\Common\Compiler\Dataflow\TypeProxy.cs (2)
26
var builder = ImmutableArray.CreateBuilder<GenericParameterProxy>(typeDef.
Instantiation
.Length);
27
foreach (var genericParameter in typeDef.
Instantiation
)
parent\parent\Common\Compiler\DependencyAnalysis\GVMDependenciesNode.cs (1)
161
.InstantiateSignature(potentialOverrideType.
Instantiation
, _method.Instantiation);
parent\parent\Common\Compiler\DependencyAnalysis\ShadowMethodNode.cs (2)
68
Instantiation typeInst = Method.OwningType.
Instantiation
;
91
Instantiation typeInst = Method.OwningType.
Instantiation
;
parent\parent\Common\Compiler\DisplayNameHelpers.cs (3)
92
TypeDesc instantiatedType = method.Signature[i].InstantiateSignature(method.OwningType.
Instantiation
, method.Instantiation);
221
for (int i = 0; i < type.
Instantiation
.Length; i++)
226
AppendName(sb, type.
Instantiation
[i], parameterOptions);
parent\parent\Common\Compiler\NativeAotNameMangler.cs (1)
424
var inst = type.
Instantiation
;
parent\parent\Common\Compiler\ObjectWriter\TypeString.cs (2)
84
for (int i = 0; i < type.
Instantiation
.Length; i++)
88
AppendName(sb, type.
Instantiation
[i]);
parent\parent\Common\Compiler\ProcessLinkerXmlBase.cs (4)
641
type.Index < _method.OwningType.
Instantiation
.Length &&
642
_method.OwningType.
Instantiation
[type.Index] is GenericParameterDesc genericParameter)
653
for (int i = 0; i < type.
Instantiation
.Length; i++)
658
AppendName(sb, type.
Instantiation
[i]);
parent\parent\Common\Compiler\TypeExtensions.cs (3)
119
foreach (TypeDesc instantiationType in type.
Instantiation
)
209
Instantiation inst1 = type1.
Instantiation
;
212
var inst2 = type2.
Instantiation
;
parent\parent\Common\Compiler\TypeMapMetadata.cs (1)
445
TypeDesc typeMapGroup = type.
Instantiation
[0];
parent\parent\Common\Compiler\VectorFieldLayoutAlgorithm.cs (1)
150
IsSupportedVectorBaseType(type.
Instantiation
[0]))
parent\parent\Common\JitInterface\CorInfoImpl.cs (8)
906
Instantiation owningTypeInst = method.OwningType.
Instantiation
;
1905
typeInst = typeContext.
Instantiation
;
1921
typeInst = methodContext.OwningType.
Instantiation
;
1966
result = ResolveTokenWithSubstitution(methodIL, token, sharedMethod.OwningType.
Instantiation
, sharedMethod.Instantiation);
1975
result = ResolveTokenWithSubstitution(methodIL, token, sharedMethod.OwningType.
Instantiation
, sharedMethod.Instantiation);
1985
result = ResolveTokenWithSubstitution(methodIL, token, sharedMethod.OwningType.
Instantiation
, sharedMethod.Instantiation);
2267
Instantiation inst = type.
Instantiation
;
2888
var typeForBox = type.IsNullable ? type.
Instantiation
[0] : type;
parent\parent\Common\JitInterface\WasmLowering.cs (5)
211
VectorFieldLayoutAlgorithm.IsSupportedVectorBaseType(type.
Instantiation
[0]);
252
if (type.IsIntrinsic && (type.
Instantiation
.Length == 1) &&
253
!VectorFieldLayoutAlgorithm.IsSupportedVectorBaseType(type.
Instantiation
[0]))
302
type.
Instantiation
.Length != 1 ||
303
!VectorFieldLayoutAlgorithm.IsSupportedVectorBaseType(type.
Instantiation
[0]))
parent\parent\Common\TypeSystem\IL\Stubs\AsyncThunks.cs (1)
35
logicalReturnType = returnType.
Instantiation
[0];
parent\parent\Common\TypeSystem\IL\Stubs\ComparerIntrinsics.cs (4)
57
TypeDesc comparedType = owningType.
Instantiation
[0];
94
.MakeInstantiatedType(type.
Instantiation
[0]);
175
TypeDesc nullableType = type.
Instantiation
[0];
208
Instantiation interfaceInstantiation = implementedInterface.
Instantiation
;
parent\parent\Common\TypeSystem\MetadataEmitter\TypeSystemMetadataEmitter.cs (2)
468
blobBuilder.WriteCompressedInteger(type.
Instantiation
.Length);
469
foreach (var instantiationArg in type.
Instantiation
)
src\runtime\src\coreclr\tools\Common\Compiler\GenericCycleDetection\GraphBuilder.cs (4)
57
var specializedType = typeToSpecialize.InstantiateSignature(processType.
Instantiation
, default(Instantiation));
73
var formal = instantiatedType.GetTypeDefinition().
Instantiation
[i] as GenericParameterDesc;
103
foreach (var instType in type.
Instantiation
)
133
foreach (var instType in t.
Instantiation
)
src\runtime\src\coreclr\tools\Common\Compiler\GenericCycleDetection\GraphBuilder.ForEach.cs (2)
60
Instantiation genericTypeParameters = genericTypeDefinition.
Instantiation
;
61
Instantiation genericTypeArguments = type.
Instantiation
;
src\runtime\src\coreclr\tools\Common\Compiler\GenericCycleDetection\ModuleCycleInfo.cs (1)
190
bool result = IsDeepPossiblyCyclicInstantiation(type.
Instantiation
, ref breadthCounter, seenTypes);
ILCompiler.RyuJit (9)
JitInterface\CorInfoImpl.RyuJit.cs (1)
1192
Instantiation inst = t.
Instantiation
;
parent\parent\Common\JitInterface\CorInfoImpl.cs (8)
906
Instantiation owningTypeInst = method.OwningType.
Instantiation
;
1905
typeInst = typeContext.
Instantiation
;
1921
typeInst = methodContext.OwningType.
Instantiation
;
1966
result = ResolveTokenWithSubstitution(methodIL, token, sharedMethod.OwningType.
Instantiation
, sharedMethod.Instantiation);
1975
result = ResolveTokenWithSubstitution(methodIL, token, sharedMethod.OwningType.
Instantiation
, sharedMethod.Instantiation);
1985
result = ResolveTokenWithSubstitution(methodIL, token, sharedMethod.OwningType.
Instantiation
, sharedMethod.Instantiation);
2267
Instantiation inst = type.
Instantiation
;
2888
var typeForBox = type.IsNullable ? type.
Instantiation
[0] : type;
ILCompiler.TypeSystem (53)
parent\parent\Common\TypeSystem\Canon\CastingHelper.Canon.cs (2)
75
Instantiation thisInst = thisType.
Instantiation
;
76
Instantiation otherInst = otherType.
Instantiation
;
parent\parent\Common\TypeSystem\Common\CastingHelper.cs (7)
172
bool isCastFromNullableOfTtoT = thisType.IsNullable && otherType.IsEquivalentTo(thisType.
Instantiation
[0], visited);
275
typeInstantiation = method.OwningType.
Instantiation
;
280
typeInstantiation = ((TypeDesc)thisType.AssociatedTypeOrMethod).
Instantiation
;
492
Instantiation instantiationThis = thisType.
Instantiation
;
493
Instantiation instantiationTarget = otherType.
Instantiation
;
494
Instantiation instantiationOpen = thisType.GetTypeDefinition().
Instantiation
;
576
return CanCastToInternal(thisType, otherType.
Instantiation
[0], protect);
parent\parent\Common\TypeSystem\Common\CastingHelper.TypeEquivalence.cs (5)
78
if (thisType.
Instantiation
.Length != otherType.
Instantiation
.Length)
87
for (int i = 0; i < thisType.
Instantiation
.Length; i++)
89
if (!thisType.
Instantiation
[i].IsEquivalentTo(otherType.
Instantiation
[i], visited))
parent\parent\Common\TypeSystem\Common\ConstructedTypeRewritingHelpers.cs (6)
30
for (int instantiationIndex = 0; instantiationIndex < type.
Instantiation
.Length; instantiationIndex++)
32
if (type.
Instantiation
[instantiationIndex].IsConstructedOverType(typesToFind))
82
for (; instantiationIndex < type.
Instantiation
.Length; instantiationIndex++)
84
TypeDesc oldType = type.
Instantiation
[instantiationIndex];
90
newInstantiation = new TypeDesc[type.
Instantiation
.Length];
92
newInstantiation[i] = type.
Instantiation
[i];
parent\parent\Common\TypeSystem\Common\TypeDesc.cs (1)
73
return this.
Instantiation
.Length != 0;
parent\parent\Common\TypeSystem\Common\TypeDesc.TypeEquivalence.cs (1)
60
foreach (var type in
Instantiation
)
parent\parent\Common\TypeSystem\Common\TypeSystemConstraintsHelpers.cs (6)
183
if (!CheckValidInstantiationArguments(arg.
Instantiation
))
198
var paramContext = new InstantiationContext(type.
Instantiation
, default(Instantiation));
199
for (int i = 0; i < uninstantiatedType.
Instantiation
.Length; i++)
201
if (!VerifyGenericParamConstraint(paramContext, (GenericParameterDesc)uninstantiatedType.
Instantiation
[i], context, type.
Instantiation
[i]))
217
var paramContext = new InstantiationContext(method.OwningType.
Instantiation
, method.Instantiation);
parent\parent\Common\TypeSystem\Common\TypeSystemHelpers.cs (2)
239
var inst = new TypeDesc[type.
Instantiation
.Length];
359
foreach (TypeDesc arg in thisType.
Instantiation
)
parent\parent\Common\TypeSystem\Common\Utilities\CSharpTypeNameFormatter.cs (3)
115
AppendInstantiatedType(sb, (DefType)type.GetTypeDefinition(), type.
Instantiation
, ref argumentIndex);
127
containingArgumentCount = containingType.
Instantiation
.Length;
134
int argumentCount = type.
Instantiation
.Length - containingArgumentCount;
parent\parent\Common\TypeSystem\Common\Utilities\CustomAttributeTypeNameFormatter.cs (2)
112
for (int i = 0; i < type.
Instantiation
.Length; i++)
118
AppendName(sb, type.
Instantiation
[i], true);
parent\parent\Common\TypeSystem\Common\Utilities\DebugNameFormatter.cs (2)
241
for (int i = 0; i < type.
Instantiation
.Length; i++)
246
AppendName(sb, type.
Instantiation
[i], parameterOptions);
parent\parent\Common\TypeSystem\Common\Utilities\ExceptionTypeNameFormatter.cs (2)
82
for (int i = 0; i < type.
Instantiation
.Length; i++)
86
AppendName(sb, type.
Instantiation
[i]);
parent\parent\Common\TypeSystem\Ecma\EcmaModule.cs (1)
645
Instantiation newSubstitution = typeDescToInspect.GetTypeDefinition().BaseType.
Instantiation
;
parent\parent\Common\TypeSystem\Ecma\EcmaSignatureEncoder.cs (3)
163
encoder.GenericInstantiation(_entityHandleProvider.GetTypeDefOrRefHandleForTypeDesc(type.GetTypeDefinition()), type.
Instantiation
.Length, type.IsValueType);
165
for (int i = 0; i < type.
Instantiation
.Length; i++)
166
EncodeTypeSignature(encoder, type.
Instantiation
[i]);
parent\parent\Common\TypeSystem\IL\ILDisassembler.cs (3)
64
_methodIL.OwningMethod.OwningType.
Instantiation
, _methodIL.OwningMethod.Instantiation);
516
for (int i = 0; i < type.
Instantiation
.Length; i++)
520
AppendNameWithValueClassPrefix(sb, type.
Instantiation
[i]);
parent\parent\Common\TypeSystem\IL\InstantiatedMethodIL.cs (1)
25
_typeInstantiation = owningMethod.OwningType.
Instantiation
;
parent\parent\Common\TypeSystem\IL\UnsafeAccessors.cs (1)
397
Instantiation declClassInst = declaration.OwningType.
Instantiation
;
parent\parent\Common\TypeSystem\RuntimeDetermined\DefType.RuntimeDetermined.cs (4)
19
foreach (TypeDesc type in
Instantiation
)
34
Instantiation instantiation =
Instantiation
;
41
instantiation, typeDefinition.
Instantiation
, out changed);
57
Instantiation instantiation =
Instantiation
;
parent\parent\Common\TypeSystem\RuntimeDetermined\RuntimeDeterminedType.cs (1)
91
return _rawCanonType.
Instantiation
;