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