-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[Diagnostics] Add fix-its for missing set
and )
after access modifier
#82058
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
[Diagnostics] Add fix-its for missing set
and )
after access modifier
#82058
Conversation
@lucianopa-msft @rintaro I've updated the fix-its to include multiple invalid tokens (and invalid parentheses like |
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.
Thanks!
2aa75e6
to
903496d
Compare
903496d
to
dd61a21
Compare
dd61a21
to
3cd3c04
Compare
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.
Thank you! Couple more minor comments, but otherwise this LGTM
@swift-ci please test |
@a7medev Looks like the test needs updating for the
|
@hamishknight Fixed. Can you please rerun the tests? 🙏🏼 |
@swift-ci please test |
@swift-ci please test Windows |
Summary
Added fix-its missing
set
subject and)
for access control modifiers. The added fix-its handle the following cases:private(set
inserts)
to becomeprivate(set)
private()
insertsset
to becomeprivate(set)
private(<unexpected>)
replaces<unexpected>
withset
to becomeprivate(set)
private( <declaration>
insertsset)
to becomeprivate(set) <declaration>
private(<unexpected> <declaration>
replaces<unexpected>
withset)
to becomeprivate(set) <declaration>