($: BaseScope, typeSet: RootExportCache)
| 1450 | > |
| 1451 | |
| 1452 | const resolutionsOfModule = ($: BaseScope, typeSet: RootExportCache) => { |
| 1453 | const result: InternalResolutions = {} |
| 1454 | for (const k in typeSet) { |
| 1455 | const v = typeSet[k] |
| 1456 | if (hasArkKind(v, "module")) { |
| 1457 | const innerResolutions = resolutionsOfModule($, v as never) |
| 1458 | const prefixedResolutions = flatMorph( |
| 1459 | innerResolutions, |
| 1460 | (innerK, innerV) => [`${k}.${innerK}`, innerV] |
| 1461 | ) |
| 1462 | Object.assign(result, prefixedResolutions) |
| 1463 | } else if (hasArkKind(v, "root") || hasArkKind(v, "generic")) result[k] = v |
| 1464 | else throwInternalError(`Unexpected scope resolution ${printable(v)}`) |
| 1465 | } |
| 1466 | return result |
| 1467 | } |
| 1468 | |
| 1469 | export { writeUnresolvableMessage } |
| 1470 |
no test coverage detected