5 overrides of GetTypicalMethodDefinition
ILCompiler.TypeSystem (5)
parent\parent\Common\TypeSystem\Common\InstantiatedMethod.cs (1)
166public override MethodDesc GetTypicalMethodDefinition()
parent\parent\Common\TypeSystem\Common\MethodDelegator.cs (1)
54public abstract override MethodDesc GetTypicalMethodDefinition();
parent\parent\Common\TypeSystem\Common\MethodForInstantiatedType.cs (1)
137public override MethodDesc GetTypicalMethodDefinition()
parent\parent\Common\TypeSystem\Ecma\EcmaMethod.cs (1)
603public override EcmaMethod GetTypicalMethodDefinition() => this;
parent\parent\Common\TypeSystem\RuntimeDetermined\MethodForRuntimeDeterminedType.cs (1)
42public override MethodDesc GetTypicalMethodDefinition() => _typicalMethodDef;
252 references to GetTypicalMethodDefinition
ILCompiler.Compiler (121)
Compiler\Dataflow\AsyncMaskingILProvider.cs (1)
33if (method.IsAsync && method.GetTypicalMethodDefinition().Signature.ReturnsTaskOrValueTask())
Compiler\Dataflow\CompilerGeneratedState.cs (3)
139Debug.Assert(method == method.GetTypicalMethodDefinition()); 179referencedMethod = referencedMethod.GetTypicalMethodDefinition(); 662method = method.GetTypicalMethodDefinition();
Compiler\Dataflow\DiagnosticUtilities.cs (2)
15if (method.GetTypicalMethodDefinition() is EcmaMethod ecmaMethod) 43var ecmaMethod = method.GetTypicalMethodDefinition() as EcmaMethod;
Compiler\Dataflow\FlowAnnotations.cs (8)
56method = method.GetTypicalMethodDefinition(); 72method = method.GetTypicalMethodDefinition(); 114method = method.GetTypicalMethodDefinition(); 125MethodDesc method = param.Method.Method.GetTypicalMethodDefinition(); 137method = method.GetTypicalMethodDefinition(); 203method = method.GetTypicalMethodDefinition(); 729method = method.GetTypicalMethodDefinition(); 730baseMethod = baseMethod.GetTypicalMethodDefinition();
Compiler\Dataflow\GenericArgumentDataFlow.cs (1)
109MethodDesc typicalMethod = method.GetTypicalMethodDefinition();
Compiler\Dataflow\HandleCallAction.cs (1)
593Debug.Assert(contextMethod.GetTypicalMethodDefinition() == contextMethod);
Compiler\Dataflow\MethodBodyScanner.cs (1)
336MethodDesc method = referencedMethod.GetTypicalMethodDefinition();
Compiler\DependencyAnalysis\DataflowAnalyzedMethodNode.cs (1)
57MethodDesc typicalMethod = method.GetTypicalMethodDefinition();
Compiler\DependencyAnalysis\EETypeNode.cs (3)
462interfaceMethodDefinition = factory.TypeSystemContext.GetMethodForInstantiatedType(interfaceMethodDefinition.GetTypicalMethodDefinition(), (InstantiatedType)definitionInterfaceType); 474implMethod = factory.TypeSystemContext.GetMethodForInstantiatedType(implMethod.GetTypicalMethodDefinition(), (InstantiatedType)implType); 507MethodDesc typicalInterfaceMethod = interfaceMethod.GetTypicalMethodDefinition();
Compiler\DependencyAnalysis\ExactMethodInstantiationsNode.cs (1)
125MethodDesc result = method.GetTypicalMethodDefinition();
Compiler\DependencyAnalysis\GenericLookupResult.cs (1)
37MethodDesc owningMethodDefinition = ((MethodDesc)_canonicalOwner).GetTypicalMethodDefinition();
Compiler\DependencyAnalysis\GenericMethodsHashtableNode.cs (1)
118MethodDesc result = method.GetTypicalMethodDefinition();
Compiler\DependencyAnalysis\GenericVirtualMethodTableNode.cs (4)
51MethodDesc openCallingMethod = callingMethod.GetTypicalMethodDefinition(); 52MethodDesc openImplementationMethod = implementationMethod.GetTypicalMethodDefinition(); 65MethodDesc openCallingMethod = callingMethod.GetTypicalMethodDefinition(); 66MethodDesc openImplementationMethod = implementationMethod.GetTypicalMethodDefinition();
Compiler\DependencyAnalysis\GvmDispatchCellInfoSectionNode.cs (1)
124MethodDesc targetMethodForMetadata = method.GetTypicalMethodDefinition();
Compiler\DependencyAnalysis\InterfaceDispatchMapNode.cs (3)
112declMethod = factory.TypeSystemContext.GetMethodForInstantiatedType(declMethod.GetTypicalMethodDefinition(), interfaceOnDefinitionType); 184declMethod = factory.TypeSystemContext.GetMethodForInstantiatedType(declMethod.GetTypicalMethodDefinition(), (InstantiatedType)definitionInterfaceType); 200targetMethod = factory.TypeSystemContext.GetMethodForInstantiatedType(implMethod.GetTypicalMethodDefinition(), (InstantiatedType)implType);
Compiler\DependencyAnalysis\InterfaceGenericVirtualMethodTableNode.cs (4)
53MethodDesc openCallingMethod = callingMethod.GetTypicalMethodDefinition(); 61MethodDesc openImplementationMethod = implementationMethod.GetTypicalMethodDefinition(); 86MethodDesc openCallingMethod = callingMethod.GetTypicalMethodDefinition(); 87object openImplementationMethod = implementationMethod == null ? resolution : implementationMethod.GetTypicalMethodDefinition();
Compiler\DependencyAnalysis\NativeLayoutVertexNode.cs (2)
215MethodDesc result = method.GetTypicalMethodDefinition(); 830foreach (GenericParameterDesc genericParam in _method.GetTypicalMethodDefinition().Instantiation)
Compiler\DependencyAnalysis\ReflectedMethodNode.cs (2)
35Debug.Assert(!factory.MetadataManager.IsReflectionBlocked(_method.GetTypicalMethodDefinition())); 43MethodDesc typicalMethod = _method.GetTypicalMethodDefinition();
Compiler\DependencyAnalysis\ReflectionInvokeSupportDependencyAlgorithm.cs (1)
35if (method.GetTypicalMethodDefinition() is not EcmaMethod ecmaMethod)
Compiler\DependencyAnalysis\ReflectionVirtualInvokeMapNode.cs (3)
55MethodDesc declaringMethodForSlot = MetadataVirtualMethodAlgorithm.FindSlotDefiningMethodForVirtualMethod(method.GetTypicalMethodDefinition()); 70declaringMethodForSlot.GetTypicalMethodDefinition(), 176int token = factory.MetadataManager.GetMetadataHandleForMethod(factory, method.GetTypicalMethodDefinition());
Compiler\DependencyAnalysis\RuntimeMethodHandleNode.cs (1)
78int handle = relocsOnly ? 0 : factory.MetadataManager.GetMetadataHandleForMethod(factory, _targetMethod.GetTypicalMethodDefinition());
Compiler\DependencyAnalysis\SealedVTableNode.cs (4)
175interfaceDefDeclMethod = factory.TypeSystemContext.GetMethodForInstantiatedType(declMethod.GetTypicalMethodDefinition(), (InstantiatedType)definitionInterfaceType); 193targetMethod = factory.TypeSystemContext.GetMethodForInstantiatedType(implMethod.GetTypicalMethodDefinition(), (InstantiatedType)implType); 305Debug.Assert(interfaceDefinition == null || method.GetTypicalMethodDefinition().OwningType == interfaceDefinition.GetTypeDefinition()); 339Debug.Assert(method.GetTypicalMethodDefinition().OwningType == interfaceDefinition.GetTypeDefinition());
Compiler\Logging\MessageContainer.cs (2)
133if (origin.MemberDefinition is MethodDesc originMethod && originMethod.GetTypicalMethodDefinition() is not EcmaMethod) 155if (origin.MemberDefinition is MethodDesc originMethod && originMethod.GetTypicalMethodDefinition() is not EcmaMethod)
Compiler\Logging\UnconditionalSuppressMessageAttributeState.cs (1)
311if (method.GetTypicalMethodDefinition() is not EcmaMethod ecmaMethod)
Compiler\MetadataManager.cs (4)
422if (method.IsAsync && !method.GetTypicalMethodDefinition().Signature.ReturnsTaskOrValueTask()) 857MethodDesc typicalMethod = method.GetTypicalMethodDefinition(); 941MethodDesc methodToGenerateMetadataFor = method.GetTypicalMethodDefinition(); 1241MethodDesc typicalMethodDefinition = methodDefinition.GetTypicalMethodDefinition();
Compiler\MethodBodyDeduplicator.cs (3)
29if (method.GetTypicalMethodDefinition() is GetFieldHelperMethodOverride) 156&& a.Method.Method.GetTypicalMethodDefinition() != b.Method.Method.GetTypicalMethodDefinition())
Compiler\RootingHelpers.cs (2)
132MethodDesc typicalMethod = method.GetTypicalMethodDefinition(); 161method.GetTypicalMethodDefinition(),
Compiler\SourceLinkWriter.cs (1)
41|| methodBodyNode.Method.GetTypicalMethodDefinition() is not EcmaMethod ecmaMethod)
Compiler\StackTraceEmissionPolicy.cs (1)
49return (method.GetTypicalMethodDefinition() is Internal.TypeSystem.Ecma.EcmaMethod || (method.IsAsync && method.IsAsyncCall()))
Compiler\SubstitutedILProvider.cs (1)
679method = method.GetTypicalMethodDefinition();
Compiler\SubstitutionProvider.cs (1)
32if (method.GetTypicalMethodDefinition() is EcmaMethod ecmaMethod)
Compiler\UsageBasedMetadataManager.cs (10)
203if (_compilationModuleGroup.ContainsType(method.GetTypicalMethodDefinition().OwningType)) 244dependencies.Add(factory.MethodMetadata(method.GetTypicalMethodDefinition()), "Reflectable method"); 252dependencies.Add(factory.LimitedMethodMetadata(method.GetTypicalMethodDefinition()), "Method referenced from native layout"); 536factory.ReflectedMethod(reflectedMethod.GetTypicalMethodDefinition()), 680if (method.GetTypicalMethodDefinition() is Internal.TypeSystem.Ecma.EcmaMethod ecmaMethod) 694MethodDesc typicalMethod = method.GetTypicalMethodDefinition(); 810baseMethod = baseMethod.GetTypicalMethodDefinition(); 811overridingMethod = overridingMethod.GetTypicalMethodDefinition(); 893MethodDesc typicalMethod = method.GetTypicalMethodDefinition(); 969method.OwningMethod.GetTypicalMethodDefinition() != method.OwningMethod;
Compiler\VirtualMethodCallHelper.cs (1)
15Debug.Assert(method.GetTypicalMethodDefinition().OwningType == interfaceOnDefinition.GetTypeDefinition());
IL\ILImporter.Scanner.cs (4)
517MethodSignature sig = ctorMethod.GetTypicalMethodDefinition().Signature; 570bool allowAsyncVariant = method.GetTypicalMethodDefinition().Signature.ReturnsTaskOrValueTask(); 857targetOfLookup = _compilation.TypeSystemContext.GetMethodForRuntimeDeterminedType(targetMethod.GetTypicalMethodDefinition(), (RuntimeDeterminedType)_constrained); 859targetOfLookup = _compilation.TypeSystemContext.GetMethodForInstantiatedType(targetMethod.GetTypicalMethodDefinition(), (InstantiatedType)_constrained);
parent\parent\Common\Compiler\AsyncMethodVariant.cs (2)
145return method.GetTypicalMethodDefinition() is AsyncMethodVariant; 150return method.GetTypicalMethodDefinition() is ReturnDroppingAsyncThunk;
parent\parent\Common\Compiler\CompilerTypeSystemContext.Async.cs (5)
164if (method.GetTypicalMethodDefinition() is EcmaMethod ecmaMethod 174var asyncMethodVariantDefinition = (AsyncMethodVariant)asyncVariantMethod.GetTypicalMethodDefinition(); 194MethodDesc taskReturningMethodDefinition = taskReturningMethod.GetTypicalMethodDefinition(); 213var returnDroppingThunkDefinition = (ReturnDroppingAsyncThunk)returnDroppingThunk.GetTypicalMethodDefinition(); 246MethodDesc typicalMethodDefinition = asyncVariantMethod.GetTypicalMethodDefinition();
parent\parent\Common\Compiler\CompilerTypeSystemContext.BoxedTypes.cs (5)
71var targetMethodDefinition = targetMethod.GetTypicalMethodDefinition(); 98var targetMethodDefinition = targetMethod.GetTypicalMethodDefinition(); 330return method.GetTypicalMethodDefinition() is GenericUnboxingThunk; 335return method.GetTypicalMethodDefinition() is GenericUnboxingThunk or UnboxingThunk; 349MethodDesc typicalMethodTarget = method.GetTypicalMethodDefinition() switch
parent\parent\Common\Compiler\Dataflow\EcmaExtensions.cs (2)
22return method.GetTypicalMethodDefinition() is EcmaMethod ecmaMethod 34return method.GetTypicalMethodDefinition() is EcmaMethod ecmaMethod
parent\parent\Common\Compiler\DependencyAnalysis\GVMDependenciesNode.cs (2)
142_method.GetTypicalMethodDefinition(), (InstantiatedType)potentialDefinitionInterfaces[interfaceIndex]); 238.GetMethodForInstantiatedType(_method.GetTypicalMethodDefinition(), (InstantiatedType)overrideTypeCur)
parent\parent\Common\Compiler\DependencyAnalysis\VirtualMethodUseNode.cs (1)
78dependencies.Add(factory.VariantInterfaceMethodUse(_decl.GetTypicalMethodDefinition()), "Variant interface call");
parent\parent\Common\Compiler\DisplayNameHelpers.cs (2)
43MethodDesc typicalMethod = method.GetTypicalMethodDefinition(); 51MethodDesc typicalMethod = method.GetTypicalMethodDefinition();
parent\parent\Common\Compiler\NativeAotNameMangler.cs (2)
579sb.Append(GetUnqualifiedMangledMethodName(methodDefinition.GetTypicalMethodDefinition())); 598var typicalMethodDefinition = method.GetTypicalMethodDefinition();
parent\parent\Common\Compiler\ObjectWriter\OutputInfoBuilder.cs (1)
210if (symbolMethodPair.Value.Method.GetTypicalMethodDefinition() is EcmaMethod ecmaMethod)
parent\parent\Common\Compiler\PseudoDescExtensions.cs (2)
15if (!accessor.IsSpecialName || accessor.GetTypicalMethodDefinition() is not EcmaMethod ecmaAccessor) 35if (!accessor.IsSpecialName || accessor.GetTypicalMethodDefinition() is not EcmaMethod ecmaAccessor)
parent\parent\Common\Compiler\TypeExtensions.cs (4)
473staticMethodDef.GetTypicalMethodDefinition(), (InstantiatedType)interfaceType); 532potentialInterfaceMethod.GetTypicalMethodDefinition(), (InstantiatedType)potentialInterfaceType); 570genInterfaceMethod.GetTypicalMethodDefinition(), (InstantiatedType)interfaceType); 595genInterfaceMethod.GetTypicalMethodDefinition(), (InstantiatedType)interfaceType);
parent\parent\Common\TypeSystem\IL\NativeAotILProvider.cs (1)
334MethodDesc typicalMethod = method.GetTypicalMethodDefinition();
parent\parent\Common\TypeSystem\IL\Stubs\DelegateThunks.cs (2)
158Debug.Assert(specializedMethod.GetTypicalMethodDefinition() == this); 493Debug.Assert(specializedMethod.GetTypicalMethodDefinition() == this);
parent\parent\Common\TypeSystem\IL\Stubs\GetFieldHelperMethodOverride.cs (1)
71Debug.Assert(specializedMethod.GetTypicalMethodDefinition() == this);
parent\parent\Common\TypeSystem\IL\Stubs\MethodBaseGetCurrentMethodThunk.cs (1)
107return _cache.GetOrCreateValue(currentMethod.GetTypicalMethodDefinition());
parent\parent\Common\TypeSystem\Interop\UnmanagedCallingConventions.cs (1)
99method = method.GetTypicalMethodDefinition();
parent\parent\Common\TypeSystem\MetadataEmitter\TypeSystemMetadataEmitter.cs (1)
320var sig = method.GetTypicalMethodDefinition().Signature;
src\runtime\src\coreclr\tools\Common\Compiler\GenericCycleDetection\GraphBuilder.cs (1)
273var decl = (EcmaMethod)MetadataVirtualMethodAlgorithm.FindSlotDefiningMethodForVirtualMethod(method.GetMethodDefinition()).GetTypicalMethodDefinition();
src\runtime\src\coreclr\tools\Common\Compiler\GenericCycleDetection\GraphBuilder.MethodCall.cs (1)
34Instantiation genericTypeParameters = target.GetTypicalMethodDefinition().Instantiation;
src\runtime\src\coreclr\tools\Common\Compiler\GenericCycleDetection\ModuleCycleInfo.cs (4)
256var ownerDefinition = ownerType?.GetTypeDefinition() ?? (TypeSystemEntity)ownerMethod.GetTypicalMethodDefinition(); 259var referentDefinition = referentType?.GetTypeDefinition() ?? (TypeSystemEntity)referentMethod.GetTypicalMethodDefinition(); 303: ((MethodDesc)referent).GetTypicalMethodDefinition(); 305: ((MethodDesc)owner).GetTypicalMethodDefinition();
ILCompiler.MetadataTransform (1)
ILCompiler\Metadata\Transform.Method.cs (1)
140record.Signature = HandleMethodSignature(entity.GetTypicalMethodDefinition().Signature);
ILCompiler.ReadyToRun (95)
Compiler\DependencyAnalysis\InheritedVirtualMethodsNode.cs (1)
105interfaceMethodDefinition.GetTypicalMethodDefinition(),
Compiler\DependencyAnalysis\ReadyToRun\CopiedMethodILNode.cs (2)
83if (method.GetTypicalMethodDefinition().Signature.ReturnsTaskOrValueTask()) 85MethodDesc asyncVariant = method.GetAsyncVariant().GetTypicalMethodDefinition();
Compiler\DependencyAnalysis\ReadyToRun\InliningInfoNode.cs (2)
75EcmaMethod inlinerDefinition = (EcmaMethod)inliner.GetPrimaryMethodDesc().GetTypicalMethodDefinition(); 90MethodDesc inlineeDefinition = inlinee.GetTypicalMethodDefinition();
Compiler\DependencyAnalysis\ReadyToRun\InstanceEntryPointTableNode.cs (1)
59EcmaMethod typicalMethod = (EcmaMethod)method.GetPrimaryMethodDesc().GetTypicalMethodDefinition();
Compiler\DependencyAnalysis\ReadyToRun\InstrumentationDataTableNode.cs (1)
147EcmaMethod typicalMethod = (EcmaMethod)handle.AsMethod.GetTypicalMethodDefinition();
Compiler\DependencyAnalysis\ReadyToRun\MethodWithGCInfo.cs (1)
64MethodDesc inlineeDefinition = inlinee.GetTypicalMethodDefinition();
Compiler\DependencyAnalysis\ReadyToRun\ModuleTokenResolver.cs (1)
104if (method.GetPrimaryMethodDesc().GetTypicalMethodDefinition() is EcmaMethod ecmaMethod)
Compiler\DependencyAnalysis\ReadyToRun\TypeValidationChecker.cs (2)
588var genericParameterDescOnImpl = (GenericParameterDesc)methodImpl.GetTypicalMethodDefinition().Instantiation[i]; 589var genericParameterDescOnDecl = (GenericParameterDesc)methodDecl.GetTypicalMethodDefinition().Instantiation[i];
Compiler\DependencyAnalysis\ReadyToRunCodegenNodeFactory.cs (4)
180ModuleDesc ownerModule = ((MetadataType)targetMethod.GetTypicalMethodDefinition().OwningType).Module; 190ModuleDesc ownerModule = ((MetadataType)targetMethod.GetTypicalMethodDefinition().OwningType).Module; 747set.Add(compiled.Method.GetTypicalMethodDefinition()); 1457MethodDesc methodDefinition = method.GetTypicalMethodDefinition();
Compiler\ExternalReferenceTokenManager.cs (1)
132EnsureMethodDefTokensAreAvailableInVersionBubble(methodDesc.GetTypicalMethodDefinition());
Compiler\ProfileDataManager.cs (2)
156if (method.GetTypicalMethodDefinition() is EcmaMethod) 375if ((_nonLocalGenericsHome != null) && (method.GetTypicalMethodDefinition() != method))
Compiler\ReadyToRunCodegenCompilation.cs (6)
751var typicalDef = method.GetTypicalMethodDefinition(); 820_tokenManager.EnsureDefTokensAreAvailable(tse, ((EcmaMethod)method.GetPrimaryMethodDesc().GetTypicalMethodDefinition()).Module, true); 836_tokenManager.EnsureDefTokensAreAvailable(catchType, ((EcmaMethod)method.GetPrimaryMethodDesc().GetTypicalMethodDefinition()).Module, true); 841_tokenManager.EnsureDefTokensAreAvailable(local.Type, ((EcmaMethod)method.GetPrimaryMethodDesc().GetTypicalMethodDefinition()).Module, true); 980var moduleForNewReferences = ((EcmaMethod)method.GetPrimaryMethodDesc().GetTypicalMethodDefinition()).Module; 1051var moduleForNewReferences = ((EcmaMethod)method.GetPrimaryMethodDesc().GetTypicalMethodDefinition()).Module;
Compiler\ReadyToRunCompilationModuleGroupBase.cs (2)
449return _tokenTranslationFreeNonVersionable.GetOrAdd((EcmaMethod)method.GetTypicalMethodDefinition(), _tokenTranslationFreeNonVersionableUncached); 912entityDefinitionInstantiation = ((MethodDesc)entityWithInstantiation).GetTypicalMethodDefinition().Instantiation;
Compiler\ReadyToRunTableManager.cs (1)
82EcmaModule module = (EcmaModule)((EcmaMethod)method.GetPrimaryMethodDesc().GetTypicalMethodDefinition()).Module;
Compiler\ReadyToRunVisibilityRootProvider.cs (2)
63&& method.GetTypicalMethodDefinition() is EcmaMethod ecma 78implementsOrOverridesVisibleMethod = record.Decl.GetTypicalMethodDefinition() is EcmaMethod decl
Compiler\RuntimeDeterminedTypeHelper.cs (1)
192method.GetTypicalMethodDefinition().GetHashCode() + 31 * GetHashCode(method.Instantiation)));
IL\ReadyToRunILProvider.cs (4)
61MethodDesc createDefaultInstance = method.OwningType.GetKnownMethod("CreateDefaultInstance"u8, method.GetTypicalMethodDefinition().Signature); 156if (!wrappedMethodIL.Initialize(_manifestMutableModule, EcmaMethodIL.Create((EcmaMethod)method.GetPrimaryMethodDesc().GetTypicalMethodDefinition()))) 259var methodDefinitionIL = GetMethodIL(method.GetTypicalMethodDefinition()); 302mutableModule.ModuleThatIsCurrentlyTheSourceOfNewReferences = ((EcmaMethod)owningMethod.GetPrimaryMethodDesc().GetTypicalMethodDefinition()).Module;
JitInterface\CorInfoImpl.ReadyToRun.cs (11)
594EcmaMethod ecmaMethod = (EcmaMethod)(method.GetPrimaryMethodDesc().GetTypicalMethodDefinition()); 755if (!compilationGroup.VersionsWithMethodBody(methodIL.OwningMethod.GetTypicalMethodDefinition())) 827var typicalDef = MethodBeingCompiled.GetTypicalMethodDefinition(); 1394methodDesc?.GetPrimaryMethodDesc().GetTypicalMethodDefinition() is EcmaMethod ecmaMethod) 1451resultMethod = primaryMethod.GetTypicalMethodDefinition(); 1977callerModule = ((EcmaMethod)versioningCallerMethod.GetPrimaryMethodDesc().GetTypicalMethodDefinition()).Module; 2175!_compilation.NodeFactory.CompilationModuleGroup.VersionsWithMethodBody(targetMethod.GetTypicalMethodDefinition())) 2537ValidateSafetyOfUsingTypeEquivalenceInSignature(targetMethod.GetTypicalMethodDefinition().Signature); 3369EcmaMethod ecmaMethod = _methodCodeNode.Method.GetTypicalMethodDefinition() as EcmaMethod; 3611var typicalMethod = inlinee.GetTypicalMethodDefinition(); 3623&& typicalMethod.GetPrimaryMethodDesc().GetTypicalMethodDefinition() is EcmaMethod ecmaMethod)
parent\parent\Common\Compiler\AsyncMethodVariant.cs (2)
145return method.GetTypicalMethodDefinition() is AsyncMethodVariant; 150return method.GetTypicalMethodDefinition() is ReturnDroppingAsyncThunk;
parent\parent\Common\Compiler\CompilerTypeSystemContext.Async.cs (5)
164if (method.GetTypicalMethodDefinition() is EcmaMethod ecmaMethod 174var asyncMethodVariantDefinition = (AsyncMethodVariant)asyncVariantMethod.GetTypicalMethodDefinition(); 194MethodDesc taskReturningMethodDefinition = taskReturningMethod.GetTypicalMethodDefinition(); 213var returnDroppingThunkDefinition = (ReturnDroppingAsyncThunk)returnDroppingThunk.GetTypicalMethodDefinition(); 246MethodDesc typicalMethodDefinition = asyncVariantMethod.GetTypicalMethodDefinition();
parent\parent\Common\Compiler\CompilerTypeSystemContext.BoxedTypes.cs (5)
71var targetMethodDefinition = targetMethod.GetTypicalMethodDefinition(); 98var targetMethodDefinition = targetMethod.GetTypicalMethodDefinition(); 330return method.GetTypicalMethodDefinition() is GenericUnboxingThunk; 335return method.GetTypicalMethodDefinition() is GenericUnboxingThunk or UnboxingThunk; 349MethodDesc typicalMethodTarget = method.GetTypicalMethodDefinition() switch
parent\parent\Common\Compiler\Dataflow\EcmaExtensions.cs (2)
22return method.GetTypicalMethodDefinition() is EcmaMethod ecmaMethod 34return method.GetTypicalMethodDefinition() is EcmaMethod ecmaMethod
parent\parent\Common\Compiler\DependencyAnalysis\GVMDependenciesNode.cs (2)
142_method.GetTypicalMethodDefinition(), (InstantiatedType)potentialDefinitionInterfaces[interfaceIndex]); 238.GetMethodForInstantiatedType(_method.GetTypicalMethodDefinition(), (InstantiatedType)overrideTypeCur)
parent\parent\Common\Compiler\NativeAotNameMangler.cs (2)
579sb.Append(GetUnqualifiedMangledMethodName(methodDefinition.GetTypicalMethodDefinition())); 598var typicalMethodDefinition = method.GetTypicalMethodDefinition();
parent\parent\Common\Compiler\ObjectWriter\OutputInfoBuilder.cs (1)
210if (symbolMethodPair.Value.Method.GetTypicalMethodDefinition() is EcmaMethod ecmaMethod)
parent\parent\Common\Compiler\PseudoDescExtensions.cs (2)
15if (!accessor.IsSpecialName || accessor.GetTypicalMethodDefinition() is not EcmaMethod ecmaAccessor) 35if (!accessor.IsSpecialName || accessor.GetTypicalMethodDefinition() is not EcmaMethod ecmaAccessor)
parent\parent\Common\Compiler\TypeExtensions.cs (4)
473staticMethodDef.GetTypicalMethodDefinition(), (InstantiatedType)interfaceType); 532potentialInterfaceMethod.GetTypicalMethodDefinition(), (InstantiatedType)potentialInterfaceType); 570genInterfaceMethod.GetTypicalMethodDefinition(), (InstantiatedType)interfaceType); 595genInterfaceMethod.GetTypicalMethodDefinition(), (InstantiatedType)interfaceType);
parent\parent\Common\JitInterface\CorInfoImpl.cs (18)
1117if (method.GetTypicalMethodDefinition() is not EcmaMethod ecmaMethod) 1315method = _compilation.TypeSystemContext.GetMethodForInstantiatedType(method.GetTypicalMethodDefinition(), (InstantiatedType)type); 1336Debug.Assert(method.GetTypicalMethodDefinition() == methodFromCtx.GetTypicalMethodDefinition()); 1341MethodDesc instantiatedMethod = _compilation.TypeSystemContext.GetMethodForInstantiatedType(method.GetTypicalMethodDefinition(), instantiatedCtxType); 1365return meth1.GetTypicalMethodDefinition() == meth2.GetTypicalMethodDefinition(); 1475decl = _compilation.TypeSystemContext.GetMethodForInstantiatedType(decl.GetTypicalMethodDefinition(), (InstantiatedType)ownerTypeDesc); 1526ModuleToken declToken = resolver.GetModuleTokenForMethod(decl.GetTypicalMethodDefinition(), allowDynamicallyCreatedReference: false, throwIfNotFound: false); 1563methodWithTokenImpl = new MethodWithToken(nonUnboxingImpl, resolver.GetModuleTokenForMethod(nonUnboxingImpl.GetTypicalMethodDefinition(), allowDynamicallyCreatedReference: false, throwIfNotFound: true), null, unboxingStub, null, devirtualizedMethodOwner: impl.OwningType); 1689scope ??= EcmaMethodILScope.Create(methodWithToken.Method.GetTypicalMethodDefinition()); 1918methodContext.GetTypicalMethodDefinition() == owningMethod.GetTypicalMethodDefinition() || 2011TypeDesc owningType = methodIL.OwningMethod.GetTypicalMethodDefinition().OwningType; 2013if (!_compilation.CompilationModuleGroup.VersionsWithMethodBody(methodIL.OwningMethod.GetTypicalMethodDefinition())) 2123if (!method.GetTypicalMethodDefinition().Signature.ReturnsTaskOrValueTask()) 3869MethodDesc methodDefinition = method.GetTypicalMethodDefinition(); 3940if (method.GetTypicalMethodDefinition() is EcmaMethod ecmaMethod)
parent\parent\Common\JitInterface\UnboxingMethodDesc.cs (1)
51MethodDesc realTypicalMethodDefinition = _wrappedMethod.GetTypicalMethodDefinition();
parent\parent\Common\TypeSystem\Interop\UnmanagedCallingConventions.cs (1)
99method = method.GetTypicalMethodDefinition();
parent\parent\Common\TypeSystem\MetadataEmitter\TypeSystemMetadataEmitter.cs (1)
320var sig = method.GetTypicalMethodDefinition().Signature;
src\runtime\src\coreclr\tools\Common\Compiler\GenericCycleDetection\GraphBuilder.cs (1)
273var decl = (EcmaMethod)MetadataVirtualMethodAlgorithm.FindSlotDefiningMethodForVirtualMethod(method.GetMethodDefinition()).GetTypicalMethodDefinition();
src\runtime\src\coreclr\tools\Common\Compiler\GenericCycleDetection\GraphBuilder.MethodCall.cs (1)
34Instantiation genericTypeParameters = target.GetTypicalMethodDefinition().Instantiation;
src\runtime\src\coreclr\tools\Common\Compiler\GenericCycleDetection\ModuleCycleInfo.cs (2)
256var ownerDefinition = ownerType?.GetTypeDefinition() ?? (TypeSystemEntity)ownerMethod.GetTypicalMethodDefinition(); 259var referentDefinition = referentType?.GetTypeDefinition() ?? (TypeSystemEntity)referentMethod.GetTypicalMethodDefinition();
ILCompiler.RyuJit (19)
JitInterface\CorInfoImpl.RyuJit.cs (4)
431targetOfLookup = _compilation.TypeSystemContext.GetMethodForRuntimeDeterminedType(directMethod.GetTypicalMethodDefinition(), (RuntimeDeterminedType)constrainedType); 433targetOfLookup = _compilation.TypeSystemContext.GetMethodForInstantiatedType(directMethod.GetTypicalMethodDefinition(), (InstantiatedType)constrainedType); 1409lookupMethod = _compilation.TypeSystemContext.GetMethodForRuntimeDeterminedType(targetMethod.GetTypicalMethodDefinition(), (RuntimeDeterminedType)runtimeDeterminedConstrainedType); 1411lookupMethod = _compilation.TypeSystemContext.GetMethodForInstantiatedType(targetMethod.GetTypicalMethodDefinition(), (InstantiatedType)runtimeDeterminedConstrainedType);
parent\parent\Common\JitInterface\CorInfoImpl.cs (14)
1117if (method.GetTypicalMethodDefinition() is not EcmaMethod ecmaMethod) 1315method = _compilation.TypeSystemContext.GetMethodForInstantiatedType(method.GetTypicalMethodDefinition(), (InstantiatedType)type); 1336Debug.Assert(method.GetTypicalMethodDefinition() == methodFromCtx.GetTypicalMethodDefinition()); 1341MethodDesc instantiatedMethod = _compilation.TypeSystemContext.GetMethodForInstantiatedType(method.GetTypicalMethodDefinition(), instantiatedCtxType); 1365return meth1.GetTypicalMethodDefinition() == meth2.GetTypicalMethodDefinition(); 1475decl = _compilation.TypeSystemContext.GetMethodForInstantiatedType(decl.GetTypicalMethodDefinition(), (InstantiatedType)ownerTypeDesc); 1689scope ??= EcmaMethodILScope.Create(methodWithToken.Method.GetTypicalMethodDefinition()); 1918methodContext.GetTypicalMethodDefinition() == owningMethod.GetTypicalMethodDefinition() || 2123if (!method.GetTypicalMethodDefinition().Signature.ReturnsTaskOrValueTask()) 3869MethodDesc methodDefinition = method.GetTypicalMethodDefinition(); 3940if (method.GetTypicalMethodDefinition() is EcmaMethod ecmaMethod)
parent\parent\Common\JitInterface\UnboxingMethodDesc.cs (1)
51MethodDesc realTypicalMethodDefinition = _wrappedMethod.GetTypicalMethodDefinition();
ILCompiler.TypeSystem (16)
parent\parent\Common\TypeSystem\Common\InstantiatedMethod.cs (1)
168return _methodDef.GetTypicalMethodDefinition();
parent\parent\Common\TypeSystem\Common\InstantiatedType.cs (1)
221return _typeDef.Context.GetMethodForInstantiatedType(typicalFinalizer.GetTypicalMethodDefinition(), (InstantiatedType)typeInHierarchy);
parent\parent\Common\TypeSystem\Common\InstantiatedType.MethodImpls.cs (1)
32decl = _typeDef.Context.GetMethodForInstantiatedType(uninstMethodImpls[i].Decl.GetTypicalMethodDefinition(), (InstantiatedType)implTypeInstantiated);
parent\parent\Common\TypeSystem\Common\MetadataVirtualMethodAlgorithm.cs (2)
904if (implRecord.Decl.GetTypicalMethodDefinition() != interfaceMethodDefinition.GetTypicalMethodDefinition())
parent\parent\Common\TypeSystem\Common\MethodDesc.cs (2)
743return GetTypicalMethodDefinition() == this; 796method = Context.GetMethodForInstantiatedType(method.GetTypicalMethodDefinition(), (InstantiatedType)instantiatedOwningType);
parent\parent\Common\TypeSystem\Common\MethodForInstantiatedType.cs (1)
21Debug.Assert(typicalMethodDef.GetTypicalMethodDefinition() == typicalMethodDef);
parent\parent\Common\TypeSystem\Common\TypeSystemHelpers.cs (2)
100MethodDesc methodTypicalDefinition = method.GetTypicalMethodDefinition(); 140TypeDesc typicalTypeOfTargetMethod = method.GetTypicalMethodDefinition().OwningType;
parent\parent\Common\TypeSystem\RuntimeDetermined\MethodDesc.RuntimeDetermined.cs (2)
24GetTypicalMethodDefinition(), (InstantiatedType)sharedRuntimeOwningType); 130method = Context.GetMethodForInstantiatedType(method.GetTypicalMethodDefinition(), (InstantiatedType)instantiatedOwningType);
parent\parent\Common\TypeSystem\RuntimeDetermined\RuntimeDeterminedType.cs (4)
116yield return Context.GetMethodForRuntimeDeterminedType(method.GetTypicalMethodDefinition(), this); 124yield return Context.GetMethodForRuntimeDeterminedType(method.GetTypicalMethodDefinition(), this); 133return Context.GetMethodForRuntimeDeterminedType(method.GetTypicalMethodDefinition(), this); 141return Context.GetMethodForRuntimeDeterminedType(method.GetTypicalMethodDefinition(), this);