($: BaseScope, typeSet: RootExportCache)
| 851 | > |
| 852 | |
| 853 | const resolutionsOfModule = ($: BaseScope, typeSet: RootExportCache) => { |
| 854 | const result: InternalResolutions = {} |
| 855 | for (const k in typeSet) { |
| 856 | const v = typeSet[k] |
| 857 | if (hasArkKind(v, "module")) { |
| 858 | const innerResolutions = resolutionsOfModule($, v as never) |
| 859 | const prefixedResolutions = flatMorph( |
| 860 | innerResolutions, |
| 861 | (innerK, innerV) => [`${k}.${innerK}`, innerV] |
| 862 | ) |
| 863 | Object.assign(result, prefixedResolutions) |
| 864 | } else if (hasArkKind(v, "root") || hasArkKind(v, "generic")) result[k] = v |
| 865 | else throwInternalError(`Unexpected scope resolution ${printable(v)}`) |
| 866 | } |
| 867 | return result |
| 868 | } |
| 869 | |
| 870 | export const writeUnresolvableMessage = <token extends string>( |
| 871 | token: token |
no test coverage detected
searching dependent graphs…