(
metadata: PropertyMetadata[],
contextId: ContextId,
inquirer?: InstanceWrapper,
)
| 968 | } |
| 969 | |
| 970 | public async loadPropertiesMetadata( |
| 971 | metadata: PropertyMetadata[], |
| 972 | contextId: ContextId, |
| 973 | inquirer?: InstanceWrapper, |
| 974 | ): Promise<PropertyDependency[]> { |
| 975 | const dependenciesHosts = await Promise.all( |
| 976 | metadata.map(async ({ wrapper: item, key }) => ({ |
| 977 | key, |
| 978 | host: await this.resolveComponentHost( |
| 979 | item.host!, |
| 980 | item, |
| 981 | this.createResolutionContext(contextId, inquirer), |
| 982 | ), |
| 983 | })), |
| 984 | ); |
| 985 | const inquirerId = this.getInquirerId(inquirer); |
| 986 | return dependenciesHosts.map(({ key, host }) => ({ |
| 987 | key, |
| 988 | name: key, |
| 989 | instance: host.getInstanceByContextId( |
| 990 | this.getContextId(contextId, host), |
| 991 | inquirerId, |
| 992 | ).instance, |
| 993 | })); |
| 994 | } |
| 995 | |
| 996 | private getInquirerId( |
| 997 | inquirer: InstanceWrapper | undefined, |
no test coverage detected