| 753 | } |
| 754 | |
| 755 | const bootstrapAliasReferences = (resolution: BaseRoot | GenericRoot) => { |
| 756 | const aliases = resolution.references.filter(node => node.hasKind("alias")) |
| 757 | for (const aliasNode of aliases) { |
| 758 | Object.assign(aliasNode.referencesById, aliasNode.resolution.referencesById) |
| 759 | for (const ref of resolution.references) { |
| 760 | if (aliasNode.id in ref.referencesById) |
| 761 | Object.assign(ref.referencesById, aliasNode.referencesById) |
| 762 | } |
| 763 | } |
| 764 | return resolution |
| 765 | } |
| 766 | |
| 767 | const resolutionsToJson = (resolutions: InternalResolutions): JsonStructure => |
| 768 | flatMorph(resolutions, (k, v) => [ |