10 overrides of Instantiation
ILCompiler.Compiler (4)
parent\parent\Common\Compiler\CompilerTypeSystemContext.BoxedTypes.cs (1)
599public override Instantiation Instantiation => _targetMethod.Instantiation;
parent\parent\Common\TypeSystem\IL\Stubs\DelegateThunks.cs (2)
54public sealed override Instantiation Instantiation 747public override Instantiation Instantiation
parent\parent\Common\TypeSystem\IL\Stubs\GetFieldHelperMethodOverride.cs (1)
203public override Instantiation Instantiation
ILCompiler.ReadyToRun (1)
parent\parent\Common\Compiler\CompilerTypeSystemContext.BoxedTypes.cs (1)
599public override Instantiation Instantiation => _targetMethod.Instantiation;
ILCompiler.TypeSystem (5)
parent\parent\Common\TypeSystem\Common\InstantiatedMethod.cs (1)
83public override Instantiation Instantiation
parent\parent\Common\TypeSystem\Common\MethodDelegator.cs (1)
28public override Instantiation Instantiation => _wrappedMethod.Instantiation;
parent\parent\Common\TypeSystem\Common\MethodForInstantiatedType.cs (1)
76public override Instantiation Instantiation
parent\parent\Common\TypeSystem\Ecma\EcmaMethod.cs (1)
443public override Instantiation Instantiation
parent\parent\Common\TypeSystem\RuntimeDetermined\MethodForRuntimeDeterminedType.cs (1)
43public override Instantiation Instantiation => _typicalMethodDef.Instantiation;
293 references to Instantiation
crossgen2 (4)
Program.cs (4)
831if (method.Instantiation.Length != singleMethodGenericArgs.Length) 834string.Format(SR.GenericArgCountMismatch, method.Instantiation.Length, singleMethodName, singleMethodTypeName)); 871for (int i = 0; i < method.Instantiation.Length; i++) 872sb.Append($" --singlemethodgenericarg \"{formatter.FormatName(method.Instantiation[i], true)}\"");
ilc (3)
Program.cs (2)
807if (method.Instantiation.Length != singleMethodGenericArgs.Length) 810$"Expected {method.Instantiation.Length} generic arguments for method '{singleMethodName}' on type '{singleMethodTypeName}'");
RdXmlRootProvider.cs (1)
186if (instArgs.Count != method.Instantiation.Length)
ILCompiler.Compiler (151)
Compiler\Compilation.cs (3)
131target = target.MakeInstantiatedMethod(originalTarget.Instantiation); 502targetMethod.Instantiation); 546return TypeSystemContext.GetInstantiatedMethod(runtimeDeterminedSlotNormalizedMethod, calledMethod.Instantiation);
Compiler\Dataflow\CompilerGeneratedState.cs (2)
415TypeDesc instantiatedType = typeRef.InstantiateSignature(method.OwningType.Instantiation, method.Instantiation); 513foreach (var tr in methodOperand.Instantiation)
Compiler\Dataflow\FlowAnnotations.cs (5)
776method.Instantiation[genericParameterIndex], 777baseMethod.Instantiation[genericParameterIndex], 805method.Instantiation[genericParameterIndex], 806baseMethod.Instantiation[genericParameterIndex], 948if (Method.Instantiation[genericParameterIndex] == genericParameter)
Compiler\Dataflow\GenericArgumentDataFlow.cs (4)
45ProcessGenericArgumentDataFlow(ref dependencies, factory, origin, type, contextMethod.OwningType.Instantiation, contextMethod.Instantiation); 112ProcessGenericInstantiation(diagnosticContext, reflectionMarker, method.Instantiation, typicalMethod.Instantiation); 161foreach (TypeDesc typeParameter in method.Instantiation)
Compiler\Dataflow\HandleCallAction.cs (15)
155AddDependenciesFromConstraintUse(_reflectionMarker, methodInstantiated.Instantiation); 157if (inst.Length == methodInstantiated.Instantiation.Length) 172else if (methodInstantiated.Instantiation.IsConstrainedToBeReferenceTypes()) 175AddDependenciesFromConstraintUse(_reflectionMarker, methodInstantiated.Instantiation); 234AddReturnValue(ArrayValue.Create(0, calledMethod.Method.Instantiation[0])); 520if (calledMethod.Method.Instantiation[0].ContainsSignatureVariables(treatGenericParameterLikeSignatureVariable: true)) 524calledMethod.Method.Instantiation[0].GetDisplayName()); 528TypeDesc typeMapGroup = calledMethod.Method.Instantiation[0]; 538if (calledMethod.Method.Instantiation[0].ContainsSignatureVariables(treatGenericParameterLikeSignatureVariable: true)) 542calledMethod.Method.Instantiation[0].GetDisplayName()); 546TypeDesc typeMapGroup = calledMethod.Method.Instantiation[0]; 653sigInst = new TypeDesc[contextType.Instantiation.Length + contextMethod.Instantiation.Length]; 654defInst = new TypeDesc[contextType.Instantiation.Length + contextMethod.Instantiation.Length]; 661for (int j = 0; j < contextMethod.Instantiation.Length; j++) 664defInst[j + contextType.Instantiation.Length] = contextMethod.Instantiation[j];
Compiler\DependencyAnalysis\DataflowAnalyzedMethodNode.cs (1)
65foreach (var d in n.Dependency.InstantiateDependencies(factory, method.OwningType.Instantiation, method.Instantiation, isConcreteInstantiation: !method.IsSharedByGenericInstantiations))
Compiler\DependencyAnalysis\ExactMethodInstantiationsNode.cs (2)
68foreach (var arg in method.Instantiation) 117foreach (var arg in method.Instantiation)
Compiler\DependencyAnalysis\GenericDictionaryNode.cs (2)
195public override Instantiation MethodInstantiation => _owningMethod.Instantiation; 231foreach (var arg in _owningMethod.Instantiation)
Compiler\DependencyAnalysis\GenericLookupResult.cs (2)
38Debug.Assert(owningMethodDefinition.Instantiation.Length == MethodInstantiation.Length); 1130implMethod = implMethod.MakeInstantiatedMethod(instantiatedConstrainedMethod.Instantiation);
Compiler\DependencyAnalysis\GenericMethodsHashtableNode.cs (4)
63for (int i = 0; i < method.Instantiation.Length; i++) 65IEETypeNode argNode = factory.NecessaryTypeSymbol(method.Instantiation[i]); 107for (int i = 0; i < method.Instantiation.Length; i++) 109IEETypeNode argNode = factory.NecessaryTypeSymbol(method.Instantiation[i]);
Compiler\DependencyAnalysis\GenericVirtualMethodImplNode.cs (1)
45_method.Instantiation.CheckValidInstantiationArguments() &&
Compiler\DependencyAnalysis\GvmDispatchCellInfoSectionNode.cs (2)
61uint instantiationIndex = _externalReferences.GetIndex(factory.MetadataEnabledGenericComposition(targetMethod.Instantiation)); 116result.Add(factory.MetadataEnabledGenericComposition(targetMethod.Instantiation), "GVM instantiation info");
Compiler\DependencyAnalysis\NativeLayoutVertexNode.cs (14)
123_instantiationArgsSig = new NativeLayoutTypeSignatureVertexNode[method.Instantiation.Length]; 125_instantiationArgsSig[i] = factory.NativeLayout.TypeSignatureVertex(method.Instantiation[i]); 137foreach (var arg in _method.Instantiation) 171Debug.Assert(_instantiationArgsSig == null || (_instantiationArgsSig != null && _method.Instantiation.Length == _instantiationArgsSig.Length)); 174args = new Vertex[_method.Instantiation.Length]; 180IEETypeNode eetypeNode = factory.NecessaryTypeSymbol(_method.Instantiation[i]); 684foreach (var arg in _method.Instantiation) 822foreach (var type in _method.Instantiation) 830foreach (GenericParameterDesc genericParam in _method.GetTypicalMethodDefinition().Instantiation) 1305foreach (var type in _method.Instantiation) 1346foreach (var type in _method.Instantiation) 1430foreach (var type in _method.Instantiation) 1510foreach (var type in _constrainedMethod.Instantiation) 1592foreach (var type in _method.Instantiation)
Compiler\DependencyAnalysis\ReflectionInvokeMapNode.cs (3)
74foreach (var instArg in method.Instantiation) 206for (int i = 0; i < method.Instantiation.Length; i++) 208uint argId = _externalReferences.GetIndex(factory.NecessaryTypeSymbol(method.Instantiation[i]));
Compiler\DependencyAnalysis\ReflectionVirtualInvokeMapNode.cs (1)
94slotDefiningMethod = factory.TypeSystemContext.GetInstantiatedMethod(slotDefiningMethod, method.Instantiation);
Compiler\DependencyAnalysis\RuntimeMethodHandleNode.cs (2)
85objData.EmitInt(_targetMethod.Instantiation.Length); 86foreach (TypeDesc instParam in _targetMethod.Instantiation)
Compiler\ILAssemblyGeneratingMethodDebugInfoProvider.cs (2)
76for (int i = 0; i < owningMethod.Instantiation.Length; i++) 80_tw.Write(fmt.FormatName(owningMethod.Instantiation[i]));
Compiler\Logging\DocumentationSignatureParser.cs (2)
369var count = methodContext.Instantiation.Length; 591var methodArity = method.Instantiation.Length;
Compiler\MetadataManager.cs (2)
977foreach (Internal.TypeSystem.Ecma.EcmaGenericParameter typeArgument in methodToGenerateMetadataFor.Instantiation) 1236if (method != methodDefinition && IsReflectionBlocked(method.Instantiation))
Compiler\RootingHelpers.cs (3)
58Instantiation inst = TypeExtensions.GetInstantiationThatMeetsConstraints(method.Instantiation, allowCanon: true); 165if (method.IsGenericMethodDefinition || method.Instantiation.ContainsSignatureVariables()) 169Instantiation inst = TypeExtensions.GetInstantiationThatMeetsConstraints(method.Instantiation, allowCanon: true);
Compiler\TypePreinit.cs (7)
1917&& method.Instantiation[0].IsValueType) 1919var elementType = (MetadataType)method.Instantiation[0]; 1950case "IsReferenceOrContainsReferences" when method.Instantiation.Length == 1 1955bool result = method.Instantiation[0].IsGCPointer || (method.Instantiation[0] is DefType defType && defType.ContainsGCPointers); 1959case "GetArrayDataReference" when method.Instantiation.Length == 1 1964&& ((ArrayType)arrayData.Type).ElementType == method.Instantiation[0]:
Compiler\UsageBasedInteropStubManager.cs (1)
73foreach (TypeDesc type in method.Instantiation)
Compiler\UsageBasedMetadataManager.cs (2)
522Instantiation inst = TypeExtensions.GetInstantiationThatMeetsConstraints(method.Instantiation, allowCanon: true); 562foreach (TypeDesc instArg in method.Instantiation)
IL\ILImporter.Scanner.cs (14)
663_dependencies.Add(GetGenericLookupHelper(ReadyToRunHelperId.DefaultConstructor, runtimeDeterminedMethod.Instantiation[0]), reason); 667TypeDesc type = method.Instantiation[0]; 679_dependencies.Add(GetGenericLookupHelper(ReadyToRunHelperId.ObjectAllocator, runtimeDeterminedMethod.Instantiation[0]), reason); 683_dependencies.Add(_compilation.ComputeConstantLookup(ReadyToRunHelperId.ObjectAllocator, method.Instantiation[0]), reason); 693_dependencies.Add(GetGenericLookupHelper(ReadyToRunHelperId.TypeHandle, runtimeDeterminedMethod.Instantiation[0]), reason); 697_dependencies.Add(_factory.ConstructedTypeSymbol(method.Instantiation[0]), reason); 864targetOfLookup = targetOfLookup.MakeInstantiatedMethod(runtimeDeterminedMethod.Instantiation); 1107TypeDesc awaiterType = runtimeDeterminedMethod.Instantiation[0]; 1856if (method.IsIntrinsic && method.Name == "DefaultConstructorOf"u8 && method.Instantiation.Length == 1) 1870if (method.IsIntrinsic && method.Name == "AllocatorOf"u8 && method.Instantiation.Length == 1) 1884if (method.IsIntrinsic && method.Name == "Of"u8 && method.Instantiation.Length == 1) 1898if (method.IsIntrinsic && method.Name == "IsReferenceOrContainsReferences"u8 && method.Instantiation.Length == 1) 1912if (method.IsIntrinsic && method.Name == "GetArrayDataReference"u8 && method.Instantiation.Length == 1) 1944if (method.IsIntrinsic && method.Instantiation.Length == 1)
IL\RvaIntrinsicPatternAnalyzer.cs (5)
327&& method.Instantiation.Length == 0 340&& method.Instantiation.Length == 1 344&& (method.Instantiation[0].IsPrimitive || method.Instantiation[0].IsEnum)) 346elementType = method.Instantiation[0];
parent\parent\Common\Compiler\CachingVirtualMethodAlgorithm.cs (1)
77result = result.MakeInstantiatedMethod(targetMethod.Instantiation);
parent\parent\Common\Compiler\CompilerTypeSystemContext.Async.cs (4)
185result = GetInstantiatedMethod(result, asyncVariantMethod.Instantiation); 204result = GetInstantiatedMethod(result, taskReturningMethod.Instantiation); 224result = GetInstantiatedMethod(result, returnDroppingThunk.Instantiation); 256result = GetInstantiatedMethod(result, asyncVariantMethod.Instantiation);
parent\parent\Common\Compiler\CompilerTypeSystemContext.BoxedTypes.cs (4)
114thunk = thunk.MakeInstantiatedMethod(targetMethod.Instantiation); 366instantiatedMethod = GetInstantiatedMethod(methodOnInstantiatedType, method.Instantiation); 581var inst = new TypeDesc[methodToInstantiate.Instantiation.Length]; 599public override Instantiation Instantiation => _targetMethod.Instantiation;
parent\parent\Common\Compiler\CompilerTypeSystemContext.Validation.cs (1)
215foreach (var instType in method.Instantiation)
parent\parent\Common\Compiler\Dataflow\MethodProxy.cs (3)
51internal partial bool HasGenericArgumentsCount(int genericArgumentCount) => Method.Instantiation.Length == genericArgumentCount; 60ImmutableArray<GenericParameterProxy>.Builder builder = ImmutableArray.CreateBuilder<GenericParameterProxy>(methodDef.Instantiation.Length); 61foreach (TypeDesc? genericParameter in methodDef.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\DependencyAnalysis\GVMDependenciesNode.cs (3)
160.MakeInstantiatedMethod(_method.Instantiation) 161.InstantiateSignature(potentialOverrideType.Instantiation, _method.Instantiation); 239.MakeInstantiatedMethod(_method.Instantiation);
parent\parent\Common\Compiler\DependencyAnalysis\ShadowMethodNode.cs (2)
69Instantiation methodInst = Method.Instantiation; 92Instantiation methodInst = Method.Instantiation;
parent\parent\Common\Compiler\DevirtualizationManager.cs (3)
117impl = impl.GetMethodDefinition().MakeInstantiatedMethod(originalDeclMethod.Instantiation); 164impl = impl.GetMethodDefinition().MakeInstantiatedMethod(originalDeclMethod.Instantiation); 206impl = impl.GetMethodDefinition().MakeInstantiatedMethod(originalDeclMethod.Instantiation);
parent\parent\Common\Compiler\DisplayNameHelpers.cs (5)
79for (int i = 0; i < method.Instantiation.Length - 1; i++) 80sb.Append(method.Instantiation[i].GetDisplayNameWithoutNamespace()).Append(','); 82sb.Append(method.Instantiation[method.Instantiation.Length - 1].GetDisplayNameWithoutNamespace()); 92TypeDesc instantiatedType = method.Signature[i].InstantiateSignature(method.OwningType.Instantiation, method.Instantiation);
parent\parent\Common\Compiler\NativeAotNameMangler.cs (1)
583var inst = method.Instantiation;
parent\parent\Common\Compiler\ProcessLinkerXmlBase.cs (3)
540sb.Append(meth.Instantiation.Length); 632type.Index < _method.Instantiation.Length && 633_method.Instantiation[type.Index] is GenericParameterDesc genericParameter)
parent\parent\Common\Compiler\TypeExtensions.cs (2)
138foreach (TypeDesc type in method.Instantiation) 425Instantiation methodInstantiation = interfaceMethod.Instantiation;
parent\parent\Common\TypeSystem\IL\NativeAotILProvider.cs (5)
109&& method.Instantiation[0] is TypeDesc activatedType 150TypeDesc elementType = method.Instantiation[0]; 189TypeDesc elementType = method.Instantiation[0]; 216TypeDesc elementType = method.Instantiation[0]; 230TypeDesc elementType = method.Instantiation[0];
parent\parent\Common\TypeSystem\IL\Stubs\AsyncThunks.cs (2)
85var inst = new TypeDesc[asyncMethod.Instantiation.Length]; 265var inst = new TypeDesc[asyncVariantTarget.Instantiation.Length];
parent\parent\Common\TypeSystem\IL\Stubs\InterlockedIntrinsics.cs (1)
39TypeDesc tType = method.Instantiation[0];
parent\parent\Common\TypeSystem\IL\Stubs\RuntimeHelpersIntrinsics.cs (2)
23if (method.Instantiation.Length != 1 || method.IsTypicalMethodDefinition) 26TypeDesc elementType = method.Instantiation[0];
parent\parent\Common\TypeSystem\MetadataEmitter\TypeSystemMetadataEmitter.cs (2)
309methodSpecEncoder.MethodSpecificationSignature(method.Instantiation.Length); 310foreach (var type in method.Instantiation)
src\runtime\src\coreclr\tools\Common\Compiler\GenericCycleDetection\GraphBuilder.cs (2)
291|| interfaceMethod.Instantiation.Length != method.Instantiation.Length 301RecordBinding(this, interfaceMethod.Instantiation, method.Instantiation);
src\runtime\src\coreclr\tools\Common\Compiler\GenericCycleDetection\GraphBuilder.MethodCall.cs (2)
34Instantiation genericTypeParameters = target.GetTypicalMethodDefinition().Instantiation; 35Instantiation genericTypeArguments = target.Instantiation;
src\runtime\src\coreclr\tools\Common\Compiler\GenericCycleDetection\ModuleCycleInfo.cs (1)
214return IsDeepPossiblyCyclicInstantiation(method.Instantiation, ref breadthCounter, seenTypes: null)
ILCompiler.MetadataTransform (2)
ILCompiler\Metadata\Transform.Method.cs (2)
67record.GenericParameters.Capacity = entity.Instantiation.Length; 68foreach (var p in entity.Instantiation)
ILCompiler.ReadyToRun (83)
Compiler\DependencyAnalysis\ReadyToRun\MethodFixupSignature.cs (1)
114foreach (TypeDesc arg in canonMethod.Instantiation)
Compiler\DependencyAnalysis\ReadyToRun\SignatureBuilder.cs (1)
527Instantiation instantiation = method.Method.Instantiation;
Compiler\DependencyAnalysis\ReadyToRun\TypeValidationChecker.cs (7)
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))) 584if (methodDecl.Instantiation.Length != methodImpl.Instantiation.Length) 586for (int i = 0; i < methodDecl.Instantiation.Length; i++) 588var genericParameterDescOnImpl = (GenericParameterDesc)methodImpl.GetTypicalMethodDefinition().Instantiation[i]; 589var genericParameterDescOnDecl = (GenericParameterDesc)methodDecl.GetTypicalMethodDefinition().Instantiation[i];
Compiler\DependencyAnalysis\ReadyToRunCodegenNodeFactory.cs (1)
261return _gvmDependenciesNode.GetOrAdd(canonSlotMethodDefinition.MakeInstantiatedMethod(canonMethod.Instantiation));
Compiler\ExternalReferenceTokenManager.cs (1)
128foreach (TypeDesc instParam in methodDesc.Instantiation)
Compiler\ReadyToRunCodegenCompilation.cs (1)
981foreach (var type in method.Instantiation)
Compiler\ReadyToRunCompilationModuleGroupBase.cs (4)
424return ComputeInstantiationVersionsWithCode(method.Instantiation, method, VersionsWithType); 490EcmaModule alternateGenericLocationModule = ComputeAlternateGenericLocationForR2RCodeFromInstantiation(methodDefiningModule, method.Instantiation); 565foreach (TypeDesc t in method.Instantiation) 912entityDefinitionInstantiation = ((MethodDesc)entityWithInstantiation).GetTypicalMethodDefinition().Instantiation;
Compiler\ReadyToRunLibraryRootProvider.cs (1)
159Instantiation inst = GetInstantiationThatMeetsConstraints(method.Instantiation);
Compiler\ReadyToRunProfilingRootProvider.cs (1)
49foreach (TypeDesc t in method.Instantiation)
Compiler\RuntimeDeterminedTypeHelper.cs (3)
107!Equals(method1.Instantiation, method2.Instantiation) || 192method.GetTypicalMethodDefinition().GetHashCode() + 31 * GetHashCode(method.Instantiation)));
IBC\IBCProfileParser.cs (1)
747int instantiationArgumentCount = methodOnType.Instantiation.Length;
IL\ReadyToRunILProvider.cs (2)
53if (method.Instantiation.Length == 1 57TypeDesc type = method.Instantiation[0];
JitInterface\CorInfoImpl.ReadyToRun.cs (2)
221methodInstantiation = methodContext.Instantiation; 1957if (originalMethod.HasInstantiation && IsGenericTooDeeplyNested(originalMethod.Instantiation))
parent\parent\Common\Compiler\CachingVirtualMethodAlgorithm.cs (1)
77result = result.MakeInstantiatedMethod(targetMethod.Instantiation);
parent\parent\Common\Compiler\CompilerTypeSystemContext.Async.cs (4)
185result = GetInstantiatedMethod(result, asyncVariantMethod.Instantiation); 204result = GetInstantiatedMethod(result, taskReturningMethod.Instantiation); 224result = GetInstantiatedMethod(result, returnDroppingThunk.Instantiation); 256result = GetInstantiatedMethod(result, asyncVariantMethod.Instantiation);
parent\parent\Common\Compiler\CompilerTypeSystemContext.BoxedTypes.cs (4)
114thunk = thunk.MakeInstantiatedMethod(targetMethod.Instantiation); 366instantiatedMethod = GetInstantiatedMethod(methodOnInstantiatedType, method.Instantiation); 581var inst = new TypeDesc[methodToInstantiate.Instantiation.Length]; 599public override Instantiation Instantiation => _targetMethod.Instantiation;
parent\parent\Common\Compiler\CompilerTypeSystemContext.Validation.cs (1)
215foreach (var instType in method.Instantiation)
parent\parent\Common\Compiler\Dataflow\MethodProxy.cs (3)
51internal partial bool HasGenericArgumentsCount(int genericArgumentCount) => Method.Instantiation.Length == genericArgumentCount; 60ImmutableArray<GenericParameterProxy>.Builder builder = ImmutableArray.CreateBuilder<GenericParameterProxy>(methodDef.Instantiation.Length); 61foreach (TypeDesc? genericParameter in methodDef.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\DependencyAnalysis\GVMDependenciesNode.cs (3)
160.MakeInstantiatedMethod(_method.Instantiation) 161.InstantiateSignature(potentialOverrideType.Instantiation, _method.Instantiation); 239.MakeInstantiatedMethod(_method.Instantiation);
parent\parent\Common\Compiler\DependencyAnalysis\ShadowMethodNode.cs (2)
69Instantiation methodInst = Method.Instantiation; 92Instantiation methodInst = Method.Instantiation;
parent\parent\Common\Compiler\DevirtualizationManager.cs (3)
117impl = impl.GetMethodDefinition().MakeInstantiatedMethod(originalDeclMethod.Instantiation); 164impl = impl.GetMethodDefinition().MakeInstantiatedMethod(originalDeclMethod.Instantiation); 206impl = impl.GetMethodDefinition().MakeInstantiatedMethod(originalDeclMethod.Instantiation);
parent\parent\Common\Compiler\DisplayNameHelpers.cs (5)
79for (int i = 0; i < method.Instantiation.Length - 1; i++) 80sb.Append(method.Instantiation[i].GetDisplayNameWithoutNamespace()).Append(','); 82sb.Append(method.Instantiation[method.Instantiation.Length - 1].GetDisplayNameWithoutNamespace()); 92TypeDesc instantiatedType = method.Signature[i].InstantiateSignature(method.OwningType.Instantiation, method.Instantiation);
parent\parent\Common\Compiler\NativeAotNameMangler.cs (1)
583var inst = method.Instantiation;
parent\parent\Common\Compiler\ProcessLinkerXmlBase.cs (3)
540sb.Append(meth.Instantiation.Length); 632type.Index < _method.Instantiation.Length && 633_method.Instantiation[type.Index] is GenericParameterDesc genericParameter)
parent\parent\Common\Compiler\TypeExtensions.cs (2)
138foreach (TypeDesc type in method.Instantiation) 425Instantiation methodInstantiation = interfaceMethod.Instantiation;
parent\parent\Common\JitInterface\CorInfoImpl.cs (12)
913sig->sigInst.methInstCount = (uint)method.Instantiation.Length; 914if (method.Instantiation.Length != 0) 916sig->sigInst.methInst = GetJitInstantiation(method.Instantiation); 1314Instantiation methodInst = method.Instantiation; 1344instantiatedMethod = _compilation.TypeSystemContext.GetInstantiatedMethod(instantiatedMethod, method.Instantiation); 1922methodInst = methodContext.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); 3780Debug.Assert(awaitAwaiterMethod.Instantiation.Length == 1); 3781TypeDesc awaiterType = awaitAwaiterMethod.Instantiation[0]; 3786TypeDesc runtimeDeterminedAwaiterType = runtimeDeterminedAwaitAwaiterMethod.Instantiation[0];
parent\parent\Common\TypeSystem\IL\Stubs\AsyncThunks.cs (2)
85var inst = new TypeDesc[asyncMethod.Instantiation.Length]; 265var inst = new TypeDesc[asyncVariantTarget.Instantiation.Length];
parent\parent\Common\TypeSystem\IL\Stubs\InterlockedIntrinsics.cs (1)
39TypeDesc tType = method.Instantiation[0];
parent\parent\Common\TypeSystem\IL\Stubs\RuntimeHelpersIntrinsics.cs (2)
23if (method.Instantiation.Length != 1 || method.IsTypicalMethodDefinition) 26TypeDesc elementType = method.Instantiation[0];
parent\parent\Common\TypeSystem\MetadataEmitter\TypeSystemMetadataEmitter.cs (2)
309methodSpecEncoder.MethodSpecificationSignature(method.Instantiation.Length); 310foreach (var type in method.Instantiation)
src\runtime\src\coreclr\tools\Common\Compiler\GenericCycleDetection\GraphBuilder.cs (2)
291|| interfaceMethod.Instantiation.Length != method.Instantiation.Length 301RecordBinding(this, interfaceMethod.Instantiation, method.Instantiation);
src\runtime\src\coreclr\tools\Common\Compiler\GenericCycleDetection\GraphBuilder.MethodCall.cs (2)
34Instantiation genericTypeParameters = target.GetTypicalMethodDefinition().Instantiation; 35Instantiation genericTypeArguments = target.Instantiation;
src\runtime\src\coreclr\tools\Common\Compiler\GenericCycleDetection\ModuleCycleInfo.cs (1)
214return IsDeepPossiblyCyclicInstantiation(method.Instantiation, ref breadthCounter, seenTypes: null)
ILCompiler.RyuJit (17)
JitInterface\CorInfoImpl.RyuJit.cs (5)
438targetOfLookup = targetOfLookup.MakeInstantiatedMethod(targetMethod.Instantiation); 1417lookupMethod = lookupMethod.MakeInstantiatedMethod(methodToGetInstantiation.Instantiation); 1910ComputeLookup(ref pResolvedToken, method.Instantiation[0], ReadyToRunHelperId.TypeHandle, HandleToObject(callerHandle), ref pResult.lookup); 1914ComputeLookup(ref pResolvedToken, method.Instantiation[0], ReadyToRunHelperId.DefaultConstructor, HandleToObject(callerHandle), ref pResult.lookup); 1918ComputeLookup(ref pResolvedToken, method.Instantiation[0], ReadyToRunHelperId.ObjectAllocator, HandleToObject(callerHandle), ref pResult.lookup);
parent\parent\Common\JitInterface\CorInfoImpl.cs (12)
913sig->sigInst.methInstCount = (uint)method.Instantiation.Length; 914if (method.Instantiation.Length != 0) 916sig->sigInst.methInst = GetJitInstantiation(method.Instantiation); 1314Instantiation methodInst = method.Instantiation; 1344instantiatedMethod = _compilation.TypeSystemContext.GetInstantiatedMethod(instantiatedMethod, method.Instantiation); 1922methodInst = methodContext.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); 3780Debug.Assert(awaitAwaiterMethod.Instantiation.Length == 1); 3781TypeDesc awaiterType = awaitAwaiterMethod.Instantiation[0]; 3786TypeDesc runtimeDeterminedAwaiterType = runtimeDeterminedAwaitAwaiterMethod.Instantiation[0];
ILCompiler.TypeSystem (33)
parent\parent\Common\TypeSystem\Common\CastingHelper.cs (1)
276methodInstantiation = method.Instantiation;
parent\parent\Common\TypeSystem\Common\ConstructedTypeRewritingHelpers.cs (5)
179for (; instantiationIndex < method.Instantiation.Length; instantiationIndex++) 181TypeDesc oldType = method.Instantiation[instantiationIndex]; 187newInstantiation = new TypeDesc[method.Instantiation.Length]; 189newInstantiation[i] = method.Instantiation[i]; 198result = method.Context.GetInstantiatedMethod(methodOnOwningType, method.Instantiation);
parent\parent\Common\TypeSystem\Common\MetadataVirtualMethodAlgorithm.cs (3)
265resolutionTarget = resolutionTarget.MakeInstantiatedMethod(initialTargetMethod.Instantiation); 1078impl = impl.MakeInstantiatedMethod(interfaceMethod.Instantiation); 1209resolvedMethodImpl = resolvedMethodImpl.MakeInstantiatedMethod(interfaceMethod.Instantiation);
parent\parent\Common\TypeSystem\Common\MethodDelegator.cs (1)
28public override Instantiation Instantiation => _wrappedMethod.Instantiation;
parent\parent\Common\TypeSystem\Common\MethodDesc.cs (2)
578return this.Instantiation.Length != 0; 769Instantiation instantiation = Instantiation;
parent\parent\Common\TypeSystem\Common\MethodDesc.ToString.cs (2)
54for (int i = 0; i < Instantiation.Length; i++) 65DebugNameFormatter.Instance.AppendName(sb, Instantiation[i], DebugNameFormatter.FormatOptions.None);
parent\parent\Common\TypeSystem\Common\MethodForInstantiatedType.cs (1)
80return _typicalMethodDef.Instantiation;
parent\parent\Common\TypeSystem\Common\TypeSystemConstraintsHelpers.cs (4)
217var paramContext = new InstantiationContext(method.OwningType.Instantiation, method.Instantiation); 219for (int i = 0; i < uninstantiatedMethod.Instantiation.Length; i++) 221if (!VerifyGenericParamConstraint(paramContext, (GenericParameterDesc)uninstantiatedMethod.Instantiation[i], context, method.Instantiation[i]))
parent\parent\Common\TypeSystem\Common\Utilities\CSharpTypeNameFormatter.cs (1)
25AppendGenericArguments(sb, method.Instantiation);
parent\parent\Common\TypeSystem\IL\ILDisassembler.cs (3)
64_methodIL.OwningMethod.OwningType.Instantiation, _methodIL.OwningMethod.Instantiation); 96for (int i = 0; i < method.Instantiation.Length; i++) 100_typeNameFormatter.AppendNameWithValueClassPrefix(sb, method.Instantiation[i]);
parent\parent\Common\TypeSystem\IL\InstantiatedMethodIL.cs (1)
26_methodInstantiation = owningMethod.Instantiation;
parent\parent\Common\TypeSystem\IL\MethodILDebugView.cs (2)
41for (int i = 0; i < owningMethod.Instantiation.Length; i++) 45disasm.AppendType(sb, owningMethod.Instantiation[i]);
parent\parent\Common\TypeSystem\IL\UnsafeAccessors.cs (2)
409Instantiation declMethodInst = declaration.Instantiation; 480TypeDesc[] methodInstantiation = new TypeDesc[targetMaybe.Instantiation.Length];
parent\parent\Common\TypeSystem\RuntimeDetermined\MethodDesc.RuntimeDetermined.cs (4)
34Instantiation, uninstantiatedMethod.Instantiation, out changed); 91foreach (TypeDesc typeArg in Instantiation) 103Instantiation instantiation = Instantiation;
parent\parent\Common\TypeSystem\RuntimeDetermined\MethodForRuntimeDeterminedType.cs (1)
43public override Instantiation Instantiation => _typicalMethodDef.Instantiation;