Skip to content

Unified: Match Swift models through module-qualified type names - #23237

Draft
asgerf wants to merge 6 commits into
mainfrom
asgerf-unified-qualified-types
Draft

asgerf wants to merge 6 commits into
mainfrom
asgerf-unified-qualified-types

Conversation

@asgerf

@asgerf asgerf commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Legacy Swift MaD models name types without their module (for example URL), so the models missed Foundation.URL. They also missed unqualified URL after a selective import such as import Foundation.URL or import struct Foundation.URL.

This PR works around the issue to ensure we have regressions testing in place when building the proper solution.

@asgerf asgerf added the no-change-note-required This PR does not need a change note label Nov 26, 2026
asgerf and others added 6 commits November 26, 2026 11:06
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Expose the legacy model namespace under the Swift and Foundation module names so qualified references and selective import aliases resolve to the existing type selectors. Unrelated modules are not mapped, so types such as `Other.URL` do not match Foundation models.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@asgerf
asgerf force-pushed the asgerf-unified-qualified-types branch from 11fcc40 to 40d244f Compare November 26, 2026 10:24

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-change-note-required This PR does not need a change note Unified

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants