13 references to GetEcmaModule
System.Reflection.MetadataLoadContext (13)
System\Reflection\TypeLoading\Types\Ecma\EcmaDefinitionType.BindingFlags.cs (4)
27yield return new RoDefinitionConstructor<EcmaMethodDecoder>(declaringType, new EcmaMethodDecoder(handle, GetEcmaModule())); 41yield return new RoDefinitionMethod<EcmaMethodDecoder>(declaringType, reflectedType, new EcmaMethodDecoder(handle, GetEcmaModule())); 83yield return handle.ResolveTypeDef(GetEcmaModule()); 98match = handle.ResolveTypeDef(GetEcmaModule());
System\Reflection\TypeLoading\Types\Ecma\EcmaDefinitionType.cs (9)
37return TypeDefinition.GetDeclaringType().ResolveTypeDef(GetEcmaModule()); 57return baseTypeHandle.ResolveTypeDefRefOrSpec(GetEcmaModule(), instantiation.ToTypeContext()); 63EcmaModule module = GetEcmaModule(); 72protected sealed override IEnumerable<CustomAttributeData> GetTrueCustomAttributes() => TypeDefinition.GetCustomAttributes().ToTrueCustomAttributes(GetEcmaModule()); 74internal sealed override bool IsCustomAttributeDefined(ReadOnlySpan<byte> ns, ReadOnlySpan<byte> name) => TypeDefinition.GetCustomAttributes().IsCustomAttributeDefined(ns, name, GetEcmaModule()); 75internal sealed override CustomAttributeData? TryFindCustomAttribute(ReadOnlySpan<byte> ns, ReadOnlySpan<byte> name) => TypeDefinition.GetCustomAttributes().TryFindCustomAttribute(ns, name, GetEcmaModule()); 85EcmaModule module = GetEcmaModule(); 119underlyingType = fd.DecodeSignature(GetEcmaModule(), typeContext); 142private MetadataReader Reader => GetEcmaModule().Reader;