-
Notifications
You must be signed in to change notification settings - Fork 441
Miscellaneous parser fixes #734
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
@swift-ci please test |
func testRethrowsAttribute() { | ||
AssertParse( | ||
""" | ||
@rethrows |
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.
Is @rethrows
a valid attribute? Do we need to handle @try
or other keywords as well?
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.
Yeah, @rethrows
is a valid attribute, which applies only to protocols. It should have been an underscored feature because it's not really done yet, but we messed up.
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.
I see. In that case you probably want to remap rethrows
to an identifier when consuming it, right?
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.
That's a great point! I'll do that in a follow-up PR.
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.
Finally did this: #818
Fix a number of small issues encountered while parsing the standard library:
/a)/
)@rethrows
attribute#fileID
@differentiable
on types