Skip to content

Conversation

beccadax
Copy link
Contributor

Some baby steps towards module selectors (#34556):

  • Add the experimental feature.
  • Stub out changes to DeclNameRef's API.
  • Refactor the serialization of four attributes that contain DeclNameRefs.
    • This makes all four of them serialize an optional DeclNameRef in the same way, using a separate record. Previously each of the four serialized its DeclNameRef in a different, ad-hoc manner, often lossily.

These changes have been separated out because they're easy to do early and relatively likely to cause merge conflicts.

@beccadax beccadax enabled auto-merge May 12, 2025 23:20
@beccadax
Copy link
Contributor Author

@swift-ci please test

@beccadax beccadax force-pushed the mod-squad-serialize branch from 6208845 to 57a3fa3 Compare May 14, 2025 18:15
beccadax added 4 commits May 14, 2025 11:16
It will soon need to allocate sometimes.
There are four attributes which serialize out a DeclNameRef, sometimes by dropping some of its components. Standardize them with a representation that can handle module selectors.
@beccadax beccadax force-pushed the mod-squad-serialize branch from 57a3fa3 to b6be852 Compare May 14, 2025 18:16
@beccadax
Copy link
Contributor Author

@swift-ci please test

@beccadax beccadax merged commit 36de3a8 into swiftlang:main May 15, 2025
4 of 5 checks passed
hamishknight added a commit to hamishknight/swift that referenced this pull request May 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants