Skip to content

Make our use of SwiftSyntax APIs more resilient to precompiled SwiftSyntax #3694

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 4 commits into from
May 27, 2025

Conversation

mbrandonw
Copy link
Member

No description provided.

@mbrandonw mbrandonw requested a review from stephencelis May 27, 2025 17:23
@@ -86,6 +86,8 @@ extension AttributeListSyntax.Element {
if let availability = ifConfig.availability {
return .ifConfigDecl(availability)
}
@unknown default:
return nil
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could also fatalError here?

@@ -219,7 +219,7 @@ extension TypeSyntax {
genericArgumentClause: GenericArgumentClauseSyntax(
arguments: [
GenericArgumentSyntax(
argument: self
argument: GenericArgumentSyntax.Argument(self)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This and the above are deprecation warning fixes.

@mbrandonw mbrandonw merged commit 6574de2 into main May 27, 2025
14 checks passed
@mbrandonw mbrandonw deleted the more-resillient-swift-syntax branch May 27, 2025 18:52
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