1 instantiation of EcmaType
ILCompiler.TypeSystem (1)
src\runtime\src\coreclr\tools\Common\TypeSystem\Ecma\EcmaModule.cs (1)
99
item = new
EcmaType
(_module, (TypeDefinitionHandle)handle);
175 references to EcmaType
ilc (2)
Program.cs (2)
690
"EETypes", "compiled", "scanned", type => !(type.GetTypeDefinition() is
EcmaType
));
716
"EETypes", "scanned", "compiled", type => !(type.GetTypeDefinition() is
EcmaType
));
ILCompiler.Compiler (66)
Compiler\CustomAttributeExtensions.cs (4)
15
var
ecmaType = prop.OwningType;
29
var
ecmaType = prop.OwningType;
44
var
ecmaType = @event.OwningType;
58
var
ecmaType = @event.OwningType;
Compiler\Dataflow\CompilerGeneratedState.cs (1)
276
if (type is not
EcmaType
ecmaType)
Compiler\Dataflow\DiagnosticUtilities.cs (2)
49
var
ecmaType = type.GetTypeDefinition() as
EcmaType
;
Compiler\Dataflow\FlowAnnotations.cs (6)
342
if (key is not
EcmaType
ecmaType)
357
var
ecmaBaseType = (
EcmaType
)baseType.GetTypeDefinition();
366
var
ecmaInterface = (
EcmaType
)runtimeInterface.GetTypeDefinition();
650
private IReadOnlyList<GenericParameterDesc?>? GetGeneratedTypeAttributes(
EcmaType
typeDef)
Compiler\DependencyAnalysis\CustomAttributeBasedDependencyAlgorithm.cs (3)
59
public static void AddDependenciesDueToCustomAttributes(ref CombinedDependencyList dependencies, NodeFactory factory,
EcmaType
type)
218
EcmaType
attributeTypeDefinition = (
EcmaType
)attributeType.GetTypeDefinition();
Compiler\DependencyAnalysis\ManagedDataDescriptorNode.cs (2)
107
if (type is not
EcmaType
ecmaType)
129
private static void WriteType(Utf8JsonWriter writer,
EcmaType
type)
Compiler\DependencyAnalysis\MethodMetadataNode.cs (3)
16
using EcmaType = Internal.TypeSystem.Ecma.
EcmaType
;
107
factory.PropertyMetadata(new PropertyPseudoDesc((
EcmaType
)owningType, propertyHandle)),
118
factory.EventMetadata(new EventPseudoDesc((
EcmaType
)owningType, eventHandle)),
Compiler\DependencyAnalysis\TypeMetadataNode.cs (2)
11
using EcmaType = Internal.TypeSystem.Ecma.
EcmaType
;
106
CustomAttributeBasedDependencyAlgorithm.AddDependenciesDueToCustomAttributes(ref dependencies, factory, ((
EcmaType
)_type));
Compiler\Logging\DocumentationSignatureParser.cs (2)
635
if (typeDesc is not
EcmaType
type)
693
if (typeDesc is not
EcmaType
type)
Compiler\Logging\UnconditionalSuppressMessageAttributeState.cs (1)
315
if (type.GetTypeDefinition() is not
EcmaType
ecmaType)
Compiler\MultiFileCompilationModuleGroup.cs (2)
27
EcmaType
ecmaType = type as
EcmaType
;
Compiler\NoMetadataBlockingPolicy.cs (1)
16
public override bool IsBlocked(MetadataType type) => !(type is
EcmaType
);
Compiler\SubstitutedILProvider.cs (1)
416
if (callee != null && callee.IsSpecialName && callee.OwningType is
EcmaType
calleeType
Compiler\SubstitutionProvider.cs (2)
73
if (featureGuardAttribute.FixedArguments is not [CustomAttributeTypedArgument<TypeDesc> { Value:
EcmaType
featureType }])
95
if (method.OwningType is not
EcmaType
declaringType)
Compiler\UsageBasedMetadataManager.cs (3)
28
using EcmaType = Internal.TypeSystem.Ecma.
EcmaType
;
798
var
ecmaType = attributeType.GetTypeDefinition() as
EcmaType
;
Compiler\UserDefinedTypeDescriptor.cs (1)
65
Name = new Utf8String($"StateMachineLocals_{System.Reflection.Metadata.Ecma335.MetadataTokens.GetToken(((
EcmaType
)defType.GetTypeDefinition()).Handle):X}"),
src\runtime\src\coreclr\tools\Common\Compiler\CompilerTypeSystemContext.Validation.cs (1)
312
if (type is
EcmaType
ecmaType && ILCompiler.LazyGenericsSupport.CheckForECMAIllegalGenericRecursion(ecmaType))
src\runtime\src\coreclr\tools\Common\Compiler\Dataflow\DynamicallyAccessedMembersBinder.cs (2)
304
if (type.GetTypeDefinition() is not
EcmaType
ecmaType)
372
if (type.GetTypeDefinition() is not
EcmaType
ecmaType)
src\runtime\src\coreclr\tools\Common\Compiler\Dataflow\EcmaExtensions.cs (3)
46
return mdType.GetTypeDefinition() is
EcmaType
ecmaType
54
var
type = (
EcmaType
)mdType.GetTypeDefinition();
src\runtime\src\coreclr\tools\Common\Compiler\EventPseudoDesc.cs (3)
18
private readonly
EcmaType
_type;
58
public
EcmaType
OwningType
82
public EventPseudoDesc(
EcmaType
type, EventDefinitionHandle handle)
src\runtime\src\coreclr\tools\Common\Compiler\GenericCycleDetection\GraphBuilder.cs (4)
21
public GraphBuilder(
EcmaType
type)
45
if (processType.HasInstantiation && processType is
EcmaType
ecmaProcessType)
177
var
ecmaType = assembly.GetType(typeHandle);
243
private void WalkAncestorTypes(
EcmaType
declaringType)
src\runtime\src\coreclr\tools\Common\Compiler\GenericCycleDetection\ModuleCycleInfo.cs (5)
37
Debug.Assert(owner is EcmaMethod || owner is
EcmaType
);
75
internal static bool CheckForECMAIllegalGenericRecursion(
EcmaType
type)
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\NativeAotNameMangler.cs (2)
278
/// If given <param name="type"/> is an <see cref="
EcmaType
"/> precompute its mangled type name
287
if (type is
EcmaType
ecmaType)
src\runtime\src\coreclr\tools\Common\Compiler\ProcessLinkerXmlBase.cs (1)
420
if (type.GetTypeDefinition() is not
EcmaType
ecmaType)
src\runtime\src\coreclr\tools\Common\Compiler\PropertyPseudoDesc.cs (3)
18
private readonly
EcmaType
_type;
53
public
EcmaType
OwningType
77
public PropertyPseudoDesc(
EcmaType
type, PropertyDefinitionHandle handle)
src\runtime\src\coreclr\tools\Common\Compiler\PseudoDescExtensions.cs (2)
18
var
type = ecmaAccessor.OwningType;
38
var
type = ecmaAccessor.OwningType;
src\runtime\src\coreclr\tools\Common\TypeSystem\IL\Stubs\DelegateMarshallingMethodThunk.cs (1)
137
if (_delegateType is
EcmaType
ecmaType)
src\runtime\src\coreclr\tools\Common\TypeSystem\IL\Stubs\PInvokeILEmitter.cs (1)
40
_flags = ((
EcmaType
)delegateMethod.DelegateType.GetTypeDefinition()).GetDelegatePInvokeFlags();
src\runtime\src\coreclr\tools\Common\TypeSystem\Interop\IL\Marshaller.Aot.cs (1)
963
CustomAttributeValue<TypeDesc>? guidAttributeValue = (parameterType as
EcmaType
)?
src\runtime\src\coreclr\tools\Common\TypeSystem\Interop\UnmanagedCallingConventions.cs (1)
142
if (delegateType is
EcmaType
ecmaDelegate)
ILCompiler.MetadataTransform (4)
ILCompiler\Metadata\Transform.Type.cs (4)
332
var
ecmaEntity = entity as Cts.Ecma.
EcmaType
;
529
var
ecmaType = type as Cts.Ecma.
EcmaType
;
ILCompiler.ReadyToRun (71)
Compiler\DependencyAnalysis\ReadyToRun\DevirtualizationManager.cs (1)
150
if (typeThatDerivesFromObject is Internal.TypeSystem.Ecma.
EcmaType
ecmaType)
Compiler\DependencyAnalysis\ReadyToRun\ILBodyFixupSignature.cs (1)
98
if (factory.SignatureContext.Resolver.GetModuleTokenForType((
EcmaType
)typeRef, allowDynamicallyCreatedReference: true, throwIfNotFound: false).Module == null)
Compiler\DependencyAnalysis\ReadyToRun\MethodFixupSignature.cs (1)
170
if (method.Method.OwningType.GetTypeDefinition() is
EcmaType
)
Compiler\DependencyAnalysis\ReadyToRun\ModuleTokenResolver.cs (4)
30
private readonly ConcurrentDictionary<
EcmaType
, ModuleToken> _typeToRefTokens = new ConcurrentDictionary<
EcmaType
, ModuleToken>();
59
if (type is
EcmaType
ecmaType)
327
if (type is
EcmaType
ecmaType)
Compiler\DependencyAnalysis\ReadyToRun\SignatureBuilder.cs (3)
313
ModuleToken token = context.GetModuleTokenForType((
EcmaType
)typeDesc);
330
ModuleToken token = context.GetModuleTokenForType((
EcmaType
)typeDesc);
352
private void EmitTypeToken(
EcmaType
type, SignatureContext context)
Compiler\DependencyAnalysis\ReadyToRun\SignatureContext.cs (2)
62
if (type.GetTypeDefinition() is
EcmaType
ecmaType)
74
public ModuleToken GetModuleTokenForType(
EcmaType
type, bool throwIfNotFound = true)
Compiler\DependencyAnalysis\ReadyToRun\TypeValidationChecker.cs (5)
56
foreach (
var
type in module.GetAllTypes())
58
if (type is
EcmaType
ecmaType)
94
private static Task<bool> ValidateType(TypeValidationChecker checker,
EcmaType
type)
103
private async Task<bool> ValidateTypeWorker(
EcmaType
type)
615
if (typeDesc is
EcmaType
ecmaType)
Compiler\ExternalReferenceTokenManager.cs (1)
156
if (type is
EcmaType
ecmaType)
Compiler\ReadyToRunCompilationModuleGroupBase.cs (6)
113
return type.GetTypeDefinition() is
EcmaType
ecmaType && IsModuleInCompilationGroup(ecmaType.Module);
376
return typeDesc.GetTypeDefinition() is
EcmaType
ecmaType &&
549
if (!versionsWithType && !usesCanon && (t.HasInstantiation && !(t is
EcmaType
etype && etype.Module != methodDefiningModule)))
556
if (!versionsWithType && !usesCanon && (t.HasInstantiation && !(t is
EcmaType
etype && etype.Module != methodDefiningModule)))
767
if (!(type.GetTypeDefinition() is
EcmaType
))
843
if (type is
EcmaType
ecmaType)
Compiler\ReadyToRunMetadataFieldLayoutAlgorithm.cs (3)
56
if (defType.GetTypeDefinition() is
EcmaType
ecmaType)
117
if (moduleLayout && fieldType.GetTypeDefinition() is
EcmaType
ecmaType && ecmaType.Module != module)
218
if (moduleLayout && fieldDesc.FieldType.GetTypeDefinition() is
EcmaType
ecmaType && ecmaType.Module != module)
Compiler\ReadyToRunStandaloneMethodMetadata.cs (2)
131
EcmaType
ecmaType = (
EcmaType
)wrappedMethod.Module.GetObject(MetadataTokens.EntityHandle(token));
Compiler\ReadyToRunVisibilityRootProvider.cs (2)
50
MethodImplRecord[] methodImplRecords = GetAllMethodImplRecordsForType((
EcmaType
)type.GetTypeDefinition());
122
private MethodImplRecord[] GetAllMethodImplRecordsForType(
EcmaType
type)
IBC\IBCProfileParser.cs (6)
347
EcmaType
foundType = null;
356
foundType = (
EcmaType
)m.GetType(typeNamespace, typeName, NotFoundBehavior.ReturnNull);
366
foundType = (
EcmaType
)externalModule.GetType(typeNamespace, typeName, NotFoundBehavior.ReturnNull);
404
var
ecmaType = (
EcmaType
)methodMetadataType.GetTypeDefinition();
740
EcmaModule ecmaModuleOfMethod = ((
EcmaType
)methodMetadataType.GetTypeDefinition()).Module;
IL\ReadyToRunILProvider.cs (1)
400
public IEcmaModule Module => ((
EcmaType
)(_variant.OwningType)).Module;
JitInterface\CorInfoImpl.ReadyToRun.cs (1)
1509
case
EcmaType
ecmaType:
src\runtime\src\coreclr\tools\Common\Compiler\CompilerTypeSystemContext.Validation.cs (1)
312
if (type is
EcmaType
ecmaType && ILCompiler.LazyGenericsSupport.CheckForECMAIllegalGenericRecursion(ecmaType))
src\runtime\src\coreclr\tools\Common\Compiler\Dataflow\DynamicallyAccessedMembersBinder.cs (2)
304
if (type.GetTypeDefinition() is not
EcmaType
ecmaType)
372
if (type.GetTypeDefinition() is not
EcmaType
ecmaType)
src\runtime\src\coreclr\tools\Common\Compiler\Dataflow\EcmaExtensions.cs (3)
46
return mdType.GetTypeDefinition() is
EcmaType
ecmaType
54
var
type = (
EcmaType
)mdType.GetTypeDefinition();
src\runtime\src\coreclr\tools\Common\Compiler\EventPseudoDesc.cs (3)
18
private readonly
EcmaType
_type;
58
public
EcmaType
OwningType
82
public EventPseudoDesc(
EcmaType
type, EventDefinitionHandle handle)
src\runtime\src\coreclr\tools\Common\Compiler\GenericCycleDetection\GraphBuilder.cs (4)
21
public GraphBuilder(
EcmaType
type)
45
if (processType.HasInstantiation && processType is
EcmaType
ecmaProcessType)
177
var
ecmaType = assembly.GetType(typeHandle);
243
private void WalkAncestorTypes(
EcmaType
declaringType)
src\runtime\src\coreclr\tools\Common\Compiler\GenericCycleDetection\ModuleCycleInfo.cs (5)
37
Debug.Assert(owner is EcmaMethod || owner is
EcmaType
);
75
internal static bool CheckForECMAIllegalGenericRecursion(
EcmaType
type)
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\NativeAotNameMangler.cs (2)
278
/// If given <param name="type"/> is an <see cref="
EcmaType
"/> precompute its mangled type name
287
if (type is
EcmaType
ecmaType)
src\runtime\src\coreclr\tools\Common\Compiler\ProcessLinkerXmlBase.cs (1)
420
if (type.GetTypeDefinition() is not
EcmaType
ecmaType)
src\runtime\src\coreclr\tools\Common\Compiler\PropertyPseudoDesc.cs (3)
18
private readonly
EcmaType
_type;
53
public
EcmaType
OwningType
77
public PropertyPseudoDesc(
EcmaType
type, PropertyDefinitionHandle handle)
src\runtime\src\coreclr\tools\Common\Compiler\PseudoDescExtensions.cs (2)
18
var
type = ecmaAccessor.OwningType;
38
var
type = ecmaAccessor.OwningType;
src\runtime\src\coreclr\tools\Common\JitInterface\CorInfoImpl.cs (5)
1990
recordToken = (methodIL.GetMethodILScopeDefinition() is IMethodTokensAreUseableInCompilation) && owningType is
EcmaType
;
1994
recordToken = (_compilation.CompilationModuleGroup.VersionsWithType(owningType) || _compilation.CompilationModuleGroup.CrossModuleInlineableType(owningType)) && owningType is
EcmaType
;
2227
if (type.GetTypeDefinition() is
EcmaType
ecmaType)
3927
EcmaType
owningType = ecmaMethod.OwningType;
3937
EcmaType
containingType = owningType;
src\runtime\src\coreclr\tools\Common\TypeSystem\Interop\UnmanagedCallingConventions.cs (1)
142
if (delegateType is
EcmaType
ecmaDelegate)
ILCompiler.RyuJit (3)
src\runtime\src\coreclr\tools\Common\JitInterface\CorInfoImpl.cs (3)
2227
if (type.GetTypeDefinition() is
EcmaType
ecmaType)
3927
EcmaType
owningType = ecmaMethod.OwningType;
3937
EcmaType
containingType = owningType;
ILCompiler.TypeSystem (29)
src\runtime\src\coreclr\tools\Common\TypeSystem\Ecma\EcmaField.cs (3)
34
private
EcmaType
_type;
43
internal EcmaField(
EcmaType
type, FieldDefinitionHandle handle)
66
public override
EcmaType
OwningType
src\runtime\src\coreclr\tools\Common\TypeSystem\Ecma\EcmaMethod.cs (3)
42
private
EcmaType
_type;
52
internal EcmaMethod(
EcmaType
type, MethodDefinitionHandle handle)
74
public override
EcmaType
OwningType
src\runtime\src\coreclr\tools\Common\TypeSystem\Ecma\EcmaModule.cs (9)
106
EcmaType
type = _module.GetType(typeDefinitionHandle);
115
EcmaType
type = _module.GetType(typeDefinitionHandle);
463
public
EcmaType
GetType(TypeDefinitionHandle handle)
465
return (
EcmaType
)GetType((EntityHandle)handle);
494
internal EcmaField GetField(FieldDefinitionHandle handle,
EcmaType
owningType)
504
internal EcmaMethod GetMethod(MethodDefinitionHandle handle,
EcmaType
owningType)
759
public sealed override IEnumerable<
EcmaType
> GetAllTypes()
767
public sealed override
EcmaType
GetGlobalModuleType()
773
return (
EcmaType
)GetType(MetadataTokens.EntityHandle(0x02000001 /* COR_GLOBAL_PARENT_TOKEN */));
src\runtime\src\coreclr\tools\Common\TypeSystem\Ecma\EcmaType.cs (4)
481
public override IEnumerable<
EcmaType
> GetNestedTypes()
485
yield return (
EcmaType
)_module.GetObject(handle);
489
public override
EcmaType
GetNestedType(Utf8Span name)
523
public override
EcmaType
ContainingType
src\runtime\src\coreclr\tools\Common\TypeSystem\Ecma\EcmaType.Sorting.cs (2)
17
var
otherType = (
EcmaType
)other;
src\runtime\src\coreclr\tools\Common\TypeSystem\Ecma\EffectiveVisibility.cs (4)
122
for (
EcmaType
type = method.OwningType; type is not null; type = type.ContainingType)
129
public static EffectiveVisibility GetEffectiveVisibility(this
EcmaType
type)
145
if (definitionType is
EcmaType
ecmaType)
162
for (
EcmaType
type = field.OwningType; type is not null; type = type.ContainingType)
src\runtime\src\coreclr\tools\Common\TypeSystem\Ecma\MetadataExtensions.cs (3)
16
public static CustomAttributeValue<TypeDesc>? GetDecodedCustomAttribute(this
EcmaType
This,
30
public static IEnumerable<CustomAttributeValue<TypeDesc>> GetDecodedCustomAttributes(this
EcmaType
This,
214
public static PInvokeFlags GetDelegatePInvokeFlags(this
EcmaType
type)
src\runtime\src\coreclr\tools\Common\TypeSystem\IL\EcmaMethodIL.cs (1)
162
_module = ((
EcmaType
)method.OwningType).Module;