(
metadata: InstanceWrapper<any>[],
contextId: ContextId,
inquirer?: InstanceWrapper,
parentInquirer?: InstanceWrapper,
)
| 937 | } |
| 938 | |
| 939 | public async loadCtorMetadata( |
| 940 | metadata: InstanceWrapper<any>[], |
| 941 | contextId: ContextId, |
| 942 | inquirer?: InstanceWrapper, |
| 943 | parentInquirer?: InstanceWrapper, |
| 944 | ): Promise<any[]> { |
| 945 | const hosts: Array<InstanceWrapper<any> | undefined> = await Promise.all( |
| 946 | metadata.map(async item => |
| 947 | this.resolveScopedComponentHost( |
| 948 | item, |
| 949 | contextId, |
| 950 | inquirer, |
| 951 | parentInquirer, |
| 952 | ), |
| 953 | ), |
| 954 | ); |
| 955 | return hosts.map((item, index) => { |
| 956 | const dependency = metadata[index]; |
| 957 | const effectiveInquirerId = this.getEffectiveInquirerId( |
| 958 | dependency, |
| 959 | this.createResolutionContext(contextId, inquirer), |
| 960 | parentInquirer, |
| 961 | ); |
| 962 | |
| 963 | return item?.getInstanceByContextId( |
| 964 | this.getContextId(contextId, item), |
| 965 | effectiveInquirerId, |
| 966 | ).instance; |
| 967 | }); |
| 968 | } |
| 969 | |
| 970 | public async loadPropertiesMetadata( |
| 971 | metadata: PropertyMetadata[], |
no test coverage detected