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