( prop: string, prefixes: string[], scopes: AnyObject[], proxy: ResolverProxy )
| 388 | } |
| 389 | |
| 390 | function _resolveWithPrefixes( |
| 391 | prop: string, |
| 392 | prefixes: string[], |
| 393 | scopes: AnyObject[], |
| 394 | proxy: ResolverProxy |
| 395 | ) { |
| 396 | let value: unknown; |
| 397 | for (const prefix of prefixes) { |
| 398 | value = _resolve(readKey(prefix, prop), scopes); |
| 399 | if (typeof value !== 'undefined') { |
| 400 | return needsSubResolver(prop, value) |
| 401 | ? createSubResolver(scopes, proxy, prop, value) |
| 402 | : value; |
| 403 | } |
| 404 | } |
| 405 | } |
| 406 | |
| 407 | function _resolve(key: string, scopes: AnyObject[]) { |
| 408 | for (const scope of scopes) { |
no test coverage detected