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