2 instantiations of EcmaModule
System.Reflection.MetadataLoadContext (2)
System\Reflection\TypeLoading\Assemblies\Ecma\EcmaAssembly.cs (1)
30_manifestModule = new EcmaModule(this, location, peReader, reader);
System\Reflection\TypeLoading\Assemblies\Ecma\EcmaAssembly.Modules.cs (1)
68return new EcmaModule(this, location, peReader, peReader.GetMetadataReader());
76 references to EcmaModule
System.Reflection.MetadataLoadContext (76)
System\Reflection\TypeLoading\Assemblies\Ecma\EcmaAssembly.cs (2)
17private readonly EcmaModule _manifestModule; 34internal EcmaModule GetEcmaManifestModule() => _manifestModule;
System\Reflection\TypeLoading\CustomAttributes\Ecma\EcmaCustomAttributeData.cs (2)
14private readonly EcmaModule _module; 19internal EcmaCustomAttributeData(CustomAttributeHandle handle, EcmaModule module)
System\Reflection\TypeLoading\CustomAttributes\Ecma\EcmaCustomAttributeHelpers.cs (6)
20public static IEnumerable<CustomAttributeData> ToTrueCustomAttributes(this CustomAttributeHandleCollection handles, EcmaModule module) 28public static CustomAttributeData ToCustomAttributeData(this CustomAttributeHandle handle, EcmaModule module) => new EcmaCustomAttributeData(handle, module); 30public static bool IsCustomAttributeDefined(this CustomAttributeHandleCollection handles, ReadOnlySpan<byte> ns, ReadOnlySpan<byte> name, EcmaModule module) 35public static CustomAttributeData? TryFindCustomAttribute(this CustomAttributeHandleCollection handles, ReadOnlySpan<byte> ns, ReadOnlySpan<byte> name, EcmaModule module) 43private static CustomAttributeHandle FindCustomAttributeByName(this CustomAttributeHandleCollection handles, ReadOnlySpan<byte> ns, ReadOnlySpan<byte> name, EcmaModule module) 178public static MarshalAsAttribute ToMarshalAsAttribute(this BlobHandle blobHandle, EcmaModule module)
System\Reflection\TypeLoading\Events\Ecma\EcmaEvent.cs (3)
18private readonly EcmaModule _module; 27Debug.Assert(declaringType.Module is EcmaModule); 30_module = (EcmaModule)(declaringType.Module);
System\Reflection\TypeLoading\Fields\Ecma\EcmaField.cs (3)
17private readonly EcmaModule _module; 26Debug.Assert(declaringType.Module is EcmaModule); 29_module = (EcmaModule)(declaringType.Module);
System\Reflection\TypeLoading\General\Ecma\EcmaDefaultValueProcessing.cs (1)
78public static bool TryFindRawDefaultValueFromCustomAttributes(this CustomAttributeHandleCollection handles, EcmaModule module, out object? rawDefaultValue)
System\Reflection\TypeLoading\General\Ecma\EcmaHelpers.cs (1)
128return new RoDefinitionMethod<EcmaMethodDecoder>(declaringType, reflectedType, new EcmaMethodDecoder(handle, (EcmaModule)(declaringType.Module)));
System\Reflection\TypeLoading\General\Ecma\EcmaPinnedTypeProvider.cs (1)
9internal EcmaPinnedTypeProvider(EcmaModule module)
System\Reflection\TypeLoading\General\Ecma\EcmaResolver.cs (16)
14public static RoType ResolveTypeDefRefOrSpec(this EntityHandle handle, EcmaModule module, in TypeContext typeContext) 28public static EcmaDefinitionType ResolveTypeDef(this TypeDefinitionHandle handle, EcmaModule module) 36private static readonly Func<EntityHandle, EcmaModule, EcmaDefinitionType> s_resolveTypeDef = 39public static RoDefinitionType ResolveTypeRef(this TypeReferenceHandle handle, EcmaModule module) 47private static readonly Func<EntityHandle, EcmaModule, RoDefinitionType> s_resolveTypeRef = 50private static RoDefinitionType ComputeTypeRefResolution(TypeReferenceHandle handle, EcmaModule module) 118public static RoType ResolveTypeSpec(this TypeSpecificationHandle handle, EcmaModule module, in TypeContext typeContext) 126public static EcmaGenericParameterType ResolveGenericParameter(this GenericParameterHandle handle, EcmaModule module) 134private static readonly Func<EntityHandle, EcmaModule, EcmaGenericParameterType> s_resolveGenericParam = 135(EntityHandle h, EcmaModule module) => 148public static RoAssembly ResolveAssembly(this AssemblyReferenceHandle handle, EcmaModule module) 156public static RoAssembly? TryResolveAssembly(this AssemblyReferenceHandle handle, EcmaModule module, out Exception? e) 168public static RoAssembly ResolveToAssemblyOrExceptionAssembly(this AssemblyReferenceHandle handle, EcmaModule module) 173private static readonly Func<EntityHandle, EcmaModule, RoAssembly> s_resolveAssembly = 180public static T ResolveMethod<T>(this MethodDefinitionHandle handle, EcmaModule module, in TypeContext typeContext) where T : MethodBase 192private static RoInstantiationProviderType ResolveAndSpecializeType(this TypeDefinitionHandle handle, EcmaModule module, in TypeContext typeContext)
System\Reflection\TypeLoading\General\Ecma\EcmaWrappedTypeProvider.cs (3)
20private readonly EcmaModule _module; 21private readonly EcmaModule _typeProvider; 23protected EcmaWrappedTypeProvider(EcmaModule module)
System\Reflection\TypeLoading\MethodBase\Ecma\EcmaMethodBody.cs (2)
85private EcmaModule GetEcmaModule() => (EcmaModule)(_roMethodBase.MethodBase.Module);
System\Reflection\TypeLoading\MethodBase\Ecma\EcmaMethodDecoder.cs (3)
14private readonly EcmaModule _module; 16internal EcmaMethodDecoder(MethodDefinitionHandle handle, EcmaModule module) 114return new EcmaMethodBody(owner, ((EcmaModule)(owner.MethodBase.Module)).PEReader.GetMethodBody(rva));
System\Reflection\TypeLoading\Modules\Ecma\EcmaModule.cs (2)
78EcmaModule? roModule = (EcmaModule?)(Assembly.GetModule(moduleName));
System\Reflection\TypeLoading\Modules\Ecma\EcmaModule.ManifestResources.cs (2)
55EcmaModule? module = (EcmaModule?)Assembly.GetModule(result.FileName);
System\Reflection\TypeLoading\Modules\Ecma\EcmaModule.MetadataTables.cs (10)
15internal MetadataTable<EcmaDefinitionType, EcmaModule> TypeDefTable 24private volatile MetadataTable<EcmaDefinitionType, EcmaModule>? _lazyTypeDefTable; 39internal MetadataTable<RoDefinitionType, EcmaModule> TypeRefTable 48private volatile MetadataTable<RoDefinitionType, EcmaModule>? _lazyTypeRefTable; 50internal MetadataTable<EcmaGenericParameterType, EcmaModule> GenericParamTable 59private volatile MetadataTable<EcmaGenericParameterType, EcmaModule>? _lazyGenericParamTable; 61internal MetadataTable<RoAssembly, EcmaModule> AssemblyRefTable 70private volatile MetadataTable<RoAssembly, EcmaModule>? _lazyAssemblyRefTable; 72private MetadataTable<T, EcmaModule> CreateTable<T>(TableIndex tableIndex) where T : class 74return new MetadataTable<T, EcmaModule>(Reader.GetTableRowCount(tableIndex));
System\Reflection\TypeLoading\Parameters\Ecma\EcmaFatMethodParameter.cs (4)
17private readonly EcmaModule _module; 28Debug.Assert(roMethodBase.MethodBase.Module is EcmaModule); 29_module = (EcmaModule)(roMethodBase.MethodBase.Module); 67private EcmaModule GetEcmaModule() => _module;
System\Reflection\TypeLoading\Properties\Ecma\EcmaProperty.cs (3)
17private readonly EcmaModule _module; 26Debug.Assert(declaringType.Module is EcmaModule); 29_module = (EcmaModule)(declaringType.Module);
System\Reflection\TypeLoading\Types\Ecma\EcmaDefinitionType.cs (5)
15private readonly EcmaModule _module; 18internal EcmaDefinitionType(TypeDefinitionHandle handle, EcmaModule module) 30internal EcmaModule GetEcmaModule() => _module; 63EcmaModule module = GetEcmaModule(); 85EcmaModule module = GetEcmaModule();
System\Reflection\TypeLoading\Types\Ecma\EcmaGenericMethodParameterType.cs (1)
14internal EcmaGenericMethodParameterType(GenericParameterHandle handle, EcmaModule module)
System\Reflection\TypeLoading\Types\Ecma\EcmaGenericParameterType.cs (3)
15private readonly EcmaModule _ecmaModule; 17internal EcmaGenericParameterType(GenericParameterHandle handle, EcmaModule module) 72internal EcmaModule GetEcmaModule() => _ecmaModule;
System\Reflection\TypeLoading\Types\Ecma\EcmaGenericTypeParameterType.cs (1)
13internal EcmaGenericTypeParameterType(GenericParameterHandle handle, EcmaModule module)
System\Reflection\TypeLoading\Types\RoFunctionPointerType.cs (2)
20private readonly EcmaModule _module; 30internal RoFunctionPointerType(EcmaModule module, MethodSignature<RoType> signature)