Skip to content

AST: Refactor AvailabilityContext into a value type #77144

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Oct 22, 2024

Conversation

tshortli
Copy link
Contributor

@tshortli tshortli commented Oct 21, 2024

Make the pointer to uniqued storage an implementation detail of an AvailabilityContext value. This way clients of AvailabilityContext don't need to think about pointers and can have access to mutating operations on a context when appropriate. Also, expand AvailabilityContext to cover platform unavailability and deprecation in addition to platform introduction. This will allow ExportContext to adopt AvailabilityContext.

@tshortli tshortli changed the title AST: Store unavailability and deprecation status in AvailabilityContext AST: Refactor AvailabilityContext into a value type Oct 21, 2024
Make the pointer to uniqued storage an implementation detail of an
`AvailabilityContext` value. This way clients of `AvailabilityContext` don't
need to think about pointers and can have access to mutating operations on a
context when appropriate.
@tshortli tshortli force-pushed the expand-availability-context branch from 60699c5 to b346385 Compare October 21, 2024 22:16
@tshortli
Copy link
Contributor Author

@swift-ci please smoke test

@tshortli
Copy link
Contributor Author

@swift-ci please smoke test Windows

@tshortli tshortli enabled auto-merge October 22, 2024 02:27
@tshortli tshortli merged commit 009ff8a into swiftlang:main Oct 22, 2024
3 checks passed
@tshortli tshortli deleted the expand-availability-context branch October 22, 2024 06:17
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.

1 participant