Skip to content

AST: Retire subclasses of AvailabilitySpec #79354

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
Feb 13, 2025

Conversation

tshortli
Copy link
Contributor

@tshortli tshortli commented Feb 13, 2025

Consolidate everything that AvailabilitySpec models into a single class, instead of having subclasses that model each flavor of spec. Soon, an AvailabilitySpec will only carry the raw availability domain identifier as a parsed string and the availability domain instance will need to be queried using a request that takes a DeclContext, so we will not be able to distinguish between flavors of spec during parsing. Most availability spec related diagnostics will need to move from parsing to type checking.

Builds on #79312.

NFC.

@tshortli
Copy link
Contributor Author

@swift-ci please test

@tshortli tshortli force-pushed the retire-availability-spec-subclasses branch from a7a0fad to 670084a Compare February 13, 2025 06:47
@tshortli
Copy link
Contributor Author

@swift-ci please test

@tshortli tshortli enabled auto-merge February 13, 2025 06:48
@tshortli tshortli merged commit 1d509c7 into swiftlang:main Feb 13, 2025
4 of 5 checks passed
@tshortli tshortli deleted the retire-availability-spec-subclasses branch February 13, 2025 15:02
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