2 instantiations of EcmaMethod
ILCompiler.TypeSystem (2)
src\runtime\src\coreclr\tools\Common\TypeSystem\Ecma\EcmaModule.cs (2)
107item = new EcmaMethod(type, methodDefinitionHandle); 509result = _resolvedTokens.AddOrGetExisting(new EcmaMethod(owningType, handle));
268 references to EcmaMethod
ilc (2)
Program.cs (2)
688"Methods", "compiled", "scanned", method => !(method.GetTypicalMethodDefinition() is EcmaMethod) || IsRelatedToInvalidInput(method)); 714"Methods", "scanned", "compiled", method => !(method.GetTypicalMethodDefinition() is EcmaMethod) || method.OwningType.IsIntrinsic);
ILCompiler.Compiler (93)
Compiler\Dataflow\CompilerGeneratedState.cs (1)
617if (method is not EcmaMethod ecmaMethod)
Compiler\Dataflow\DiagnosticUtilities.cs (3)
15if (method.GetTypicalMethodDefinition() is EcmaMethod ecmaMethod) 43var ecmaMethod = method.GetTypicalMethodDefinition() as EcmaMethod;
Compiler\Dataflow\FlowAnnotations.cs (1)
402foreach (EcmaMethod method in ecmaType.GetMethods())
Compiler\DependencyAnalysis\CustomAttributeBasedDependencyAlgorithm.cs (1)
31public static void AddDependenciesDueToCustomAttributes(ref CombinedDependencyList dependencies, NodeFactory factory, EcmaMethod method)
Compiler\DependencyAnalysis\DynamicDependencyAttributesOnEntityNode.cs (3)
33Debug.Assert(entity is EcmaMethod || entity is EcmaField); 37public static void AddDependenciesDueToDynamicDependencyAttribute(ref DependencyList dependencies, NodeFactory factory, EcmaMethod method) 62EcmaMethod method => (method.OwningType, method.GetDecodedCustomAttributes("System.Diagnostics.CodeAnalysis", "DynamicDependencyAttribute")),
Compiler\DependencyAnalysis\MethodMetadataNode.cs (3)
15using EcmaMethod = Internal.TypeSystem.Ecma.EcmaMethod; 31private readonly EcmaMethod _method; 37_method = (EcmaMethod)method;
Compiler\DependencyAnalysis\PInvokeMethodFixupNode.cs (2)
131EcmaMethod method = pInvokeLazyFixupField.TargetMethod as EcmaMethod;
Compiler\DependencyAnalysis\ReflectionInvokeSupportDependencyAlgorithm.cs (1)
35if (method.GetTypicalMethodDefinition() is not EcmaMethod ecmaMethod)
Compiler\DependencyAnalysis\RuntimeImportMethodNode.cs (1)
18: base(nameMangler.NodeMangler.ExternMethod(new Utf8String(((EcmaMethod)method).GetRuntimeImportName()), method))
Compiler\ExportsFileWriter.cs (7)
16private readonly List<EcmaMethod> _methods; 24_methods = new List<EcmaMethod>(); 27public void AddExportedMethods(IEnumerable<EcmaMethod> methods, CompilationResults compilationResults) 29foreach (EcmaMethod method in methods) 48foreach (var method in _methods) 55foreach (var method in _methods) 66foreach (var method in _methods)
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\NoMetadataBlockingPolicy.cs (1)
47if (method is EcmaMethod ecmaMethod)
Compiler\ReachabilityInstrumentationFilter.cs (1)
58if (method is not EcmaMethod ecmaMethod || nestedIL is null)
Compiler\ReachabilityInstrumentationProvider.cs (1)
52if (method is not EcmaMethod ecmaMethod || nestedIL is null)
Compiler\SourceLinkWriter.cs (1)
41|| methodBodyNode.Method.GetTypicalMethodDefinition() is not EcmaMethod ecmaMethod)
Compiler\StackTraceEmissionPolicy.cs (2)
27/// <see cref="Internal.TypeSystem.Ecma.EcmaMethod"/>-based methods. 49return (method.GetTypicalMethodDefinition() is Internal.TypeSystem.Ecma.EcmaMethod || (method.IsAsync && method.IsAsyncCall()))
Compiler\SubstitutedILProvider.cs (4)
415var callee = method.GetObject(reader.ReadILToken(), NotFoundBehavior.ReturnNull) as EcmaMethod; 650var getter = (EcmaMethod)method.GetObject(new ILReader(newBody, offset + 1).ReadILToken());
Compiler\SubstitutionProvider.cs (4)
32if (method.GetTypicalMethodDefinition() is EcmaMethod ecmaMethod) 45private bool TryGetFeatureCheckValue(EcmaMethod method, out bool value) 90static PropertyPseudoDesc FindProperty(EcmaMethod method) 135internal string GetResourceStringForAccessor(EcmaMethod method)
Compiler\UnmanagedEntryPointsRootProvider.cs (9)
32public IEnumerable<EcmaMethod> ExportedMethods 64public static IEnumerable<EcmaMethod> GetExportedMethods(EcmaModule module) 82EcmaMethod method = module.GetMethod(parent); 90EcmaMethod method = module.GetMethod(parent); 112foreach (EcmaMethod method in GetExportedMethods(_module)) 134foreach (EcmaMethod method in GetExportedMethods(_module)) 156private IEnumerable<DependencyListEntry> GetMethodStaticDependencies(NodeFactory context, EcmaMethod method, string reason, Utf8String exportName) 163private IMethodNode GetMethodEntrypointAndAddAlias(NodeFactory context, EcmaMethod method, Utf8String exportName) 176private static bool TryGetAssociatedSourceType(EcmaMethod method, out TypeDesc associatedSourceType)
Compiler\UsageBasedMetadataManager.cs (2)
666if (method is EcmaMethod maybeEntrypoint 680if (method.GetTypicalMethodDefinition() is Internal.TypeSystem.Ecma.EcmaMethod ecmaMethod)
Compiler\WindowsNodeMangler.cs (2)
100if (method is not Internal.TypeSystem.Ecma.EcmaMethod) 107Debug.Assert(method is Internal.TypeSystem.Ecma.EcmaMethod ecmaMethod && (ecmaMethod.GetRuntimeImportName() != null || ecmaMethod.GetRuntimeExportName() != null));
src\runtime\src\coreclr\tools\Common\Compiler\AsyncMethodVariant.cs (3)
18public AsyncMethodVariant(EcmaMethod wrappedMethod) 24public EcmaMethod Target => (EcmaMethod)_wrappedMethod;
src\runtime\src\coreclr\tools\Common\Compiler\CompilerTypeSystemContext.Async.cs (6)
164if (method.GetTypicalMethodDefinition() is EcmaMethod ecmaMethod 195MethodDesc result = _asyncVariantHashtable.GetOrCreateValue((EcmaMethod)taskReturningMethodDefinition); 230private sealed class AsyncVariantHashtable : LockFreeReaderHashtable<EcmaMethod, AsyncMethodVariant> 232protected override int GetKeyHashCode(EcmaMethod key) => key.GetHashCode(); 234protected override bool CompareKeyToValue(EcmaMethod key, AsyncMethodVariant value) => key == value.Target; 237protected override AsyncMethodVariant CreateValueFromKey(EcmaMethod key) => new AsyncMethodVariant(key);
src\runtime\src\coreclr\tools\Common\Compiler\Dataflow\EcmaExtensions.cs (2)
22return method.GetTypicalMethodDefinition() is EcmaMethod ecmaMethod 34return method.GetTypicalMethodDefinition() is EcmaMethod ecmaMethod
src\runtime\src\coreclr\tools\Common\Compiler\Dataflow\ParameterProxy.cs (1)
21: (Method.Method is EcmaMethod ecmaMethod) ? ecmaMethod.GetParameterDisplayName(MetadataIndex)
src\runtime\src\coreclr\tools\Common\Compiler\DisplayNameHelpers.cs (1)
104public static string GetParameterDisplayName(this EcmaMethod method, int parameterIndex)
src\runtime\src\coreclr\tools\Common\Compiler\EventPseudoDesc.cs (3)
23public EcmaMethod AddMethod 32public EcmaMethod RemoveMethod 41public EcmaMethod RaiseMethod
src\runtime\src\coreclr\tools\Common\Compiler\GenericCycleDetection\GraphBuilder.cs (5)
201var ecmaMethod = assembly.GetMethod(methodHandle); 263private void LookForVirtualOverrides(EcmaMethod method) 273var decl = (EcmaMethod)MetadataVirtualMethodAlgorithm.FindSlotDefiningMethodForVirtualMethod(method.GetMethodDefinition()).GetTypicalMethodDefinition(); 320private void WalkMethod(EcmaMethod method)
src\runtime\src\coreclr\tools\Common\Compiler\GenericCycleDetection\ModuleCycleInfo.cs (5)
37Debug.Assert(owner is EcmaMethod || owner is EcmaType); 38TypeDesc ownerType = (owner as EcmaMethod)?.OwningType; 220EcmaModule ownerModule = (entity as EcmaType)?.Module ?? (entity as EcmaMethod)?.Module; 262if ((referentDefinition is not EcmaMethod && referentDefinition is not EcmaType) 263|| (ownerDefinition is not EcmaMethod && ownerDefinition is not EcmaType))
src\runtime\src\coreclr\tools\Common\Compiler\MethodExtensions.cs (5)
16public static string GetRuntimeImportName(this EcmaMethod This) 30public static string GetRuntimeImportDllName(this EcmaMethod This) 44public static string GetRuntimeExportName(this EcmaMethod This) 64public static string GetUnmanagedCallersOnlyExportName(this EcmaMethod This) 81public static TypeDesc GetUnmanagedCallersOnlyAssociatedSourceType(this EcmaMethod This)
src\runtime\src\coreclr\tools\Common\Compiler\NativeAotNameMangler.cs (1)
548if (method is EcmaMethod)
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\OutputInfoBuilder.cs (1)
190if (symbolMethodPair.Value.Method.GetTypicalMethodDefinition() is EcmaMethod ecmaMethod)
src\runtime\src\coreclr\tools\Common\Compiler\PropertyPseudoDesc.cs (2)
27public EcmaMethod GetMethod 36public EcmaMethod SetMethod
src\runtime\src\coreclr\tools\Common\Compiler\PseudoDescExtensions.cs (2)
15if (!accessor.IsSpecialName || accessor.GetTypicalMethodDefinition() is not EcmaMethod ecmaAccessor) 35if (!accessor.IsSpecialName || accessor.GetTypicalMethodDefinition() is not EcmaMethod ecmaAccessor)
src\runtime\src\coreclr\tools\Common\TypeSystem\IL\NativeAotILProvider.cs (1)
283if (method is EcmaMethod ecmaMethod)
src\runtime\src\coreclr\tools\Common\TypeSystem\Interop\UnmanagedCallingConventions.cs (2)
98CustomAttributeValue<TypeDesc> unmanagedCallersOnlyAttribute = ((EcmaMethod)method).GetDecodedCustomAttribute("System.Runtime.InteropServices", "UnmanagedCallersOnlyAttribute").Value; 119else if (method is EcmaMethod ecmaMethod)
ILCompiler.MetadataTransform (6)
ILCompiler\Metadata\Transform.Method.cs (6)
72var ecmaEntity = entity as Cts.Ecma.EcmaMethod; 213var ecmaMethod = method as Cts.Ecma.EcmaMethod; 226var ecmaMethod = method as Cts.Ecma.EcmaMethod;
ILCompiler.ReadyToRun (126)
Compiler\DependencyAnalysis\ReadyToRun\CopiedMetadataBlobNode.cs (2)
63EcmaMethod method = _sourceModule.GetMethod(methodDefHandle) as EcmaMethod;
Compiler\DependencyAnalysis\ReadyToRun\CopiedMethodILNode.cs (2)
21EcmaMethod _method; 23public CopiedMethodILNode(EcmaMethod method)
Compiler\DependencyAnalysis\ReadyToRun\ILBodyFixupSignature.cs (4)
43private EcmaMethod ILMethod => (EcmaMethod)_signatureMethod.GetPrimaryMethodDesc(); 49Debug.Assert(signatureMethod.GetPrimaryMethodDesc() is EcmaMethod); 72EcmaMethod ilMethod = ILMethod;
Compiler\DependencyAnalysis\ReadyToRun\InliningInfoNode.cs (14)
75EcmaMethod inlinerDefinition = (EcmaMethod)inliner.GetPrimaryMethodDesc().GetTypicalMethodDefinition(); 91if (!(inlineeDefinition is EcmaMethod or AsyncMethodVariant)) 145EcmaMethod ecmaInlinee = (EcmaMethod)inlinee.GetPrimaryMethodDesc(); 180List<EcmaMethod> sortedInliners = new List<EcmaMethod>(inlineeWithInliners.Value.Count); 183sortedInliners.Add((EcmaMethod)inliner.GetPrimaryMethodDesc()); 203foreach (EcmaMethod inliner in sortedInliners) 245EcmaMethod[] sortedInliners = new EcmaMethod[inlineeWithInliners.Value.Count]; 287foreach (var method in sortedInliners) 328var inliner = sortedInliners[inlinerIndex]; 339var inliner = sortedInliners[inlinerIndex];
Compiler\DependencyAnalysis\ReadyToRun\InstanceEntryPointTableNode.cs (2)
59EcmaMethod typicalMethod = (EcmaMethod)method.GetPrimaryMethodDesc().GetTypicalMethodDefinition();
Compiler\DependencyAnalysis\ReadyToRun\InstrumentationDataTableNode.cs (2)
147EcmaMethod typicalMethod = (EcmaMethod)handle.AsMethod.GetTypicalMethodDefinition();
Compiler\DependencyAnalysis\ReadyToRun\MethodEntryPointTableNode.cs (3)
53Debug.Assert(method.Method is EcmaMethod); 54EcmaMethod ecmaMethod = (EcmaMethod)method.Method;
Compiler\DependencyAnalysis\ReadyToRun\MethodWithGCInfo.cs (1)
65if (!(inlineeDefinition is EcmaMethod ecmaInlineeDefinition))
Compiler\DependencyAnalysis\ReadyToRun\ModuleTokenResolver.cs (1)
104if (method.GetPrimaryMethodDesc().GetTypicalMethodDefinition() is EcmaMethod ecmaMethod)
Compiler\DependencyAnalysis\ReadyToRun\TypeValidationChecker.cs (2)
166foreach (var methodDesc in type.GetMethods()) 168var method = methodDesc;
Compiler\DependencyAnalysis\ReadyToRunCodegenNodeFactory.cs (3)
460return new CopiedMethodILNode((EcmaMethod)method); 630EcmaModule module = ((EcmaMethod)method.GetTypicalMethodDefinition()).Module; 1297public CopiedMethodILNode CopiedMethodIL(EcmaMethod method)
Compiler\ExternalReferenceTokenManager.cs (1)
120if (methodDesc is EcmaMethod ecmaMethod)
Compiler\ProfileDataManager.cs (1)
156if (method.GetTypicalMethodDefinition() is EcmaMethod)
Compiler\ReadyToRunCodegenCompilation.cs (6)
741if (typicalDef is EcmaMethod or AsyncMethodVariant or AsyncResumptionStub) 809_tokenManager.EnsureDefTokensAreAvailable(tse, ((EcmaMethod)method.GetPrimaryMethodDesc().GetTypicalMethodDefinition()).Module, true); 825_tokenManager.EnsureDefTokensAreAvailable(catchType, ((EcmaMethod)method.GetPrimaryMethodDesc().GetTypicalMethodDefinition()).Module, true); 830_tokenManager.EnsureDefTokensAreAvailable(local.Type, ((EcmaMethod)method.GetPrimaryMethodDesc().GetTypicalMethodDefinition()).Module, true); 1016var moduleForNewReferences = ((EcmaMethod)method.GetPrimaryMethodDesc().GetTypicalMethodDefinition()).Module; 1087var moduleForNewReferences = ((EcmaMethod)method.GetPrimaryMethodDesc().GetTypicalMethodDefinition()).Module;
Compiler\ReadyToRunCompilationModuleGroupBase.cs (5)
66private ConcurrentDictionary<EcmaMethod, bool> _tokenTranslationFreeNonVersionable = new ConcurrentDictionary<EcmaMethod, bool>(); 67private readonly Func<EcmaMethod, bool> _tokenTranslationFreeNonVersionableUncached; 429return _tokenTranslationFreeNonVersionable.GetOrAdd((EcmaMethod)method.GetTypicalMethodDefinition(), _tokenTranslationFreeNonVersionableUncached); 564private bool IsNonVersionableWithILTokensThatDoNotNeedTranslationUncached(EcmaMethod method)
Compiler\ReadyToRunStandaloneMethodMetadata.cs (1)
25public static ReadyToRunStandaloneMethodMetadata Compute(EcmaMethod wrappedMethod)
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
IBC\IBCProfileParser.cs (2)
415EcmaMethod ecmaCandidateMethod = method as EcmaMethod;
IBC\MIbcProfileParser.cs (4)
189EcmaMethod assemblyDictionary = mibcModule.GetGlobalModuleType().GetMethod("AssemblyDictionary"u8, null); 254loadedMethodProfileData = loadedMethodProfileData.Concat(ReadMIbcGroup((EcmaMethod)ilBody.GetObject(token))); 271EcmaMethod mibcConfigMth = mibcModule.GetGlobalModuleType().GetMethod("MibcConfig"u8, null); 358private static List<MethodProfileData> ReadMIbcGroup(EcmaMethod method)
IL\ReadyToRunILProvider.cs (7)
156if (!wrappedMethodIL.Initialize(_manifestMutableModule, EcmaMethodIL.Create((EcmaMethod)method.GetPrimaryMethodDesc().GetTypicalMethodDefinition()))) 183if (method is not EcmaMethod ecmaMethod) 200Debug.Assert(method.IsAsync && method is EcmaMethod); 212if (method is EcmaMethod ecmaMethod) 296var owningMethod = wrappedMethod.OwningMethod; 298mutableModule.ModuleThatIsCurrentlyTheSourceOfNewReferences = ((EcmaMethod)owningMethod.GetPrimaryMethodDesc().GetTypicalMethodDefinition()).Module; 326Debug.Assert(ReadyToRunStandaloneMethodMetadata.Compute((EcmaMethod)_owningMethod.GetPrimaryMethodDesc().GetTypicalMethodDefinition()) != null);
IL\Stubs\InstanceCalliHelperIntrinsics.cs (1)
15MethodIL methodIL = EcmaMethodIL.Create((EcmaMethod)method);
JitInterface\CorInfoImpl.ReadyToRun.cs (15)
595EcmaMethod ecmaMethod = (EcmaMethod)(method.GetPrimaryMethodDesc().GetTypicalMethodDefinition()); 829if (typicalDef is EcmaMethod or AsyncMethodVariant) 831var ecmaMethod = (EcmaMethod)typicalDef.GetPrimaryMethodDesc(); 1397methodDesc?.GetPrimaryMethodDesc().GetTypicalMethodDefinition() is EcmaMethod ecmaMethod) 1462Debug.Assert(resultMethod is EcmaMethod); 1463token = (mdToken)MetadataTokens.GetToken(((EcmaMethod)resultMethod).Handle); 1464module = ((EcmaMethod)resultMethod).Module; 1977callerModule = ((EcmaMethod)callerMethod.GetPrimaryMethodDesc().GetTypicalMethodDefinition()).Module; 3224EcmaMethod ecmaMethod = _methodCodeNode.Method.GetTypicalMethodDefinition() as EcmaMethod; 3270EcmaMethod ecmaMethod = (EcmaMethod)methodDesc; 3452&& typicalMethod.GetPrimaryMethodDesc().GetTypicalMethodDefinition() is EcmaMethod ecmaMethod)
src\runtime\src\coreclr\tools\Common\Compiler\AsyncMethodVariant.cs (3)
18public AsyncMethodVariant(EcmaMethod wrappedMethod) 24public EcmaMethod Target => (EcmaMethod)_wrappedMethod;
src\runtime\src\coreclr\tools\Common\Compiler\CompilerTypeSystemContext.Async.cs (6)
164if (method.GetTypicalMethodDefinition() is EcmaMethod ecmaMethod 195MethodDesc result = _asyncVariantHashtable.GetOrCreateValue((EcmaMethod)taskReturningMethodDefinition); 230private sealed class AsyncVariantHashtable : LockFreeReaderHashtable<EcmaMethod, AsyncMethodVariant> 232protected override int GetKeyHashCode(EcmaMethod key) => key.GetHashCode(); 234protected override bool CompareKeyToValue(EcmaMethod key, AsyncMethodVariant value) => key == value.Target; 237protected override AsyncMethodVariant CreateValueFromKey(EcmaMethod key) => new AsyncMethodVariant(key);
src\runtime\src\coreclr\tools\Common\Compiler\Dataflow\EcmaExtensions.cs (2)
22return method.GetTypicalMethodDefinition() is EcmaMethod ecmaMethod 34return method.GetTypicalMethodDefinition() is EcmaMethod ecmaMethod
src\runtime\src\coreclr\tools\Common\Compiler\Dataflow\ParameterProxy.cs (1)
21: (Method.Method is EcmaMethod ecmaMethod) ? ecmaMethod.GetParameterDisplayName(MetadataIndex)
src\runtime\src\coreclr\tools\Common\Compiler\DisplayNameHelpers.cs (1)
104public static string GetParameterDisplayName(this EcmaMethod method, int parameterIndex)
src\runtime\src\coreclr\tools\Common\Compiler\EventPseudoDesc.cs (3)
23public EcmaMethod AddMethod 32public EcmaMethod RemoveMethod 41public EcmaMethod RaiseMethod
src\runtime\src\coreclr\tools\Common\Compiler\GenericCycleDetection\GraphBuilder.cs (5)
201var ecmaMethod = assembly.GetMethod(methodHandle); 263private void LookForVirtualOverrides(EcmaMethod method) 273var decl = (EcmaMethod)MetadataVirtualMethodAlgorithm.FindSlotDefiningMethodForVirtualMethod(method.GetMethodDefinition()).GetTypicalMethodDefinition(); 320private void WalkMethod(EcmaMethod method)
src\runtime\src\coreclr\tools\Common\Compiler\GenericCycleDetection\ModuleCycleInfo.cs (5)
37Debug.Assert(owner is EcmaMethod || owner is EcmaType); 38TypeDesc ownerType = (owner as EcmaMethod)?.OwningType; 220EcmaModule ownerModule = (entity as EcmaType)?.Module ?? (entity as EcmaMethod)?.Module; 262if ((referentDefinition is not EcmaMethod && referentDefinition is not EcmaType) 263|| (ownerDefinition is not EcmaMethod && ownerDefinition is not EcmaType))
src\runtime\src\coreclr\tools\Common\Compiler\MethodExtensions.cs (5)
16public static string GetRuntimeImportName(this EcmaMethod This) 30public static string GetRuntimeImportDllName(this EcmaMethod This) 44public static string GetRuntimeExportName(this EcmaMethod This) 64public static string GetUnmanagedCallersOnlyExportName(this EcmaMethod This) 81public static TypeDesc GetUnmanagedCallersOnlyAssociatedSourceType(this EcmaMethod This)
src\runtime\src\coreclr\tools\Common\Compiler\NativeAotNameMangler.cs (1)
548if (method is EcmaMethod)
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\OutputInfoBuilder.cs (1)
190if (symbolMethodPair.Value.Method.GetTypicalMethodDefinition() is EcmaMethod ecmaMethod)
src\runtime\src\coreclr\tools\Common\Compiler\PropertyPseudoDesc.cs (2)
27public EcmaMethod GetMethod 36public EcmaMethod SetMethod
src\runtime\src\coreclr\tools\Common\Compiler\PseudoDescExtensions.cs (2)
15if (!accessor.IsSpecialName || accessor.GetTypicalMethodDefinition() is not EcmaMethod ecmaAccessor) 35if (!accessor.IsSpecialName || accessor.GetTypicalMethodDefinition() is not EcmaMethod ecmaAccessor)
src\runtime\src\coreclr\tools\Common\JitInterface\CorInfoImpl.cs (5)
1092if (method.GetTypicalMethodDefinition() is not EcmaMethod ecmaMethod) 1240if (caller is EcmaMethod em && em.Module.EntryPoint == caller) 3858TypeSystem.Ecma.EcmaMethod ecmaMethodDefinition = methodDefinition as TypeSystem.Ecma.EcmaMethod; 3925if (method.GetTypicalMethodDefinition() is EcmaMethod ecmaMethod)
src\runtime\src\coreclr\tools\Common\TypeSystem\Interop\UnmanagedCallingConventions.cs (2)
98CustomAttributeValue<TypeDesc> unmanagedCallersOnlyAttribute = ((EcmaMethod)method).GetDecodedCustomAttribute("System.Runtime.InteropServices", "UnmanagedCallersOnlyAttribute").Value; 119else if (method is EcmaMethod ecmaMethod)
ILCompiler.RyuJit (9)
src\runtime\src\coreclr\tools\aot\ILCompiler.ReadyToRun\IBC\MIbcProfileParser.cs (4)
189EcmaMethod assemblyDictionary = mibcModule.GetGlobalModuleType().GetMethod("AssemblyDictionary"u8, null); 254loadedMethodProfileData = loadedMethodProfileData.Concat(ReadMIbcGroup((EcmaMethod)ilBody.GetObject(token))); 271EcmaMethod mibcConfigMth = mibcModule.GetGlobalModuleType().GetMethod("MibcConfig"u8, null); 358private static List<MethodProfileData> ReadMIbcGroup(EcmaMethod method)
src\runtime\src\coreclr\tools\Common\JitInterface\CorInfoImpl.cs (5)
1092if (method.GetTypicalMethodDefinition() is not EcmaMethod ecmaMethod) 1240if (caller is EcmaMethod em && em.Module.EntryPoint == caller) 3858TypeSystem.Ecma.EcmaMethod ecmaMethodDefinition = methodDefinition as TypeSystem.Ecma.EcmaMethod; 3925if (method.GetTypicalMethodDefinition() is EcmaMethod ecmaMethod)
ILCompiler.TypeSystem (32)
src\runtime\src\coreclr\tools\Common\TypeSystem\Ecma\EcmaMethod.cs (2)
601public override EcmaMethod GetMethodDefinition() => this; 603public override EcmaMethod GetTypicalMethodDefinition() => this;
src\runtime\src\coreclr\tools\Common\TypeSystem\Ecma\EcmaMethod.Sorting.cs (2)
15var otherMethod = (EcmaMethod)other;
src\runtime\src\coreclr\tools\Common\TypeSystem\Ecma\EcmaModule.cs (4)
476public EcmaMethod GetMethod(MethodDefinitionHandle handle) 478return (EcmaMethod)GetMethod((EntityHandle)handle); 504internal EcmaMethod GetMethod(MethodDefinitionHandle handle, EcmaType owningType) 511return (EcmaMethod)result;
src\runtime\src\coreclr\tools\Common\TypeSystem\Ecma\EcmaType.cs (11)
292public override IEnumerable<EcmaMethod> GetMethods() 300public override IEnumerable<EcmaMethod> GetVirtualMethods() 317public new EcmaMethod GetMethod(Utf8Span name, MethodSignature signature) 322public override EcmaMethod GetMethod(Utf8Span name, MethodSignature signature, Instantiation substitution) 330var method = _module.GetMethod(handle, this); 339public override EcmaMethod GetMethodWithEquivalentSignature(Utf8Span name, MethodSignature signature, Instantiation substitution) 347var method = _module.GetMethod(handle, this); 356public override EcmaMethod GetStaticConstructor() 367var method = _module.GetMethod(handle, this); 375public override EcmaMethod GetDefaultConstructor() 390var method = _module.GetMethod(handle, this);
src\runtime\src\coreclr\tools\Common\TypeSystem\Ecma\EffectiveVisibility.cs (1)
118public static EffectiveVisibility GetEffectiveVisibility(this EcmaMethod method)
src\runtime\src\coreclr\tools\Common\TypeSystem\Ecma\MetadataExtensions.cs (2)
44public static CustomAttributeValue<TypeDesc>? GetDecodedCustomAttribute(this EcmaMethod This, 58public static IEnumerable<CustomAttributeValue<TypeDesc>> GetDecodedCustomAttributes(this EcmaMethod This,
src\runtime\src\coreclr\tools\Common\TypeSystem\IL\EcmaMethodIL.cs (4)
18private readonly EcmaMethod _method; 26public static EcmaMethodIL Create(EcmaMethod method) 34private EcmaMethodIL(EcmaMethod method, int rva) 49public override EcmaMethod OwningMethod
src\runtime\src\coreclr\tools\Common\TypeSystem\IL\EcmaMethodIL.Symbols.cs (2)
27private EcmaMethod _method; 29public EcmaMethodDebugInformation(EcmaMethod method)
src\runtime\src\coreclr\tools\Common\TypeSystem\IL\UnsafeAccessors.cs (4)
20public static MethodIL TryGetIL(EcmaMethod method) 220public EcmaMethod Declaration; 546EcmaMethod method = context.Declaration; 618private static SetTargetResult DecodeUnsafeAccessorType(EcmaMethod method, CustomAttribute unsafeAccessorTypeAttribute, out TypeDesc replacementType)