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