-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[SR-9576][SourceKit] Fix syntax type when rethrows is present #22017
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make sense. Thank you for fixing this!
@swift-ci please smoke test and merge |
@nkcsgexi Thanks for reviewing this! It looks like CI hasn't started, maybe you could try asking it again? 😅 |
@swift-ci please smoke test and merge |
5f5348c
to
6ab57cb
Compare
Just pushed a commit that should fix the test failure. @nkcsgexi can you please trigger CI again? |
Sure @swift-ci please smoke test and merge |
@swift-ci please smoke test and merge |
6ab57cb
to
d948823
Compare
just pushed a new commit that should really fix the tests this time™ |
@nkcsgexi Can you please trigger CI again? 🙏 |
@swift-ci please smoke test |
This is finally green ✅ |
Great! Merged. |
Thanks, @nkcsgexi! Do you think it's worth to cherry-pick this to 5.0 or is it too late in the process? |
No worries. We tend to keep 5.0 branch stable at this point of time. How about we leave it on master and it'll be landed after the next re-branching. |
Before this patch, SourceKit would return
source.lang.swift.syntaxtype.identifier
for types in a function ifrethrows
is present - it should returntypeidentifier
.Another issue is that it'd return
source.lang.swift.syntaxtype.attribute.builtin
forrethrows
- I think it should bekeyword
.Resolves SR-9576.
cc @nkcsgexi