Skip to content
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

Parse/Sema: Consolidate diagnostics for unexpected versions #79098

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tshortli
Copy link
Contributor

@tshortli tshortli commented Feb 1, 2025

Since resolving the domain of an @available attribute is done during type checking now, diagnostics about unexpected versions for a domain need to be emitted at that point instead of during parsing. It doesn't make sense to maintain the special version of this diagnostic that is emitted during parsing for the universal availability domain only.

Builds on #79070 and depends on swiftlang/sourcekit-lsp#1962.

Since resolving the domain of an `@available` attribute is done during type
checking now, diagnostics about unexpected versions for a domain need to be
emitted at that point instead of during parsing. It doesn't make sense to
maintain the special version of this diagnostic that is emitted during parsing
for the universal availability domain only.
@tshortli tshortli force-pushed the consolidate-unexpected-available-versions-diagnostic branch from b79c33b to 427c8af Compare February 2, 2025 17:57
@tshortli
Copy link
Contributor Author

tshortli commented Feb 2, 2025

swiftlang/sourcekit-lsp#1962

@swift-ci please smoke test

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