Skip to content

[Parser] Check let/var context when fix-it moving attributes from type to decl #65748

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 1 commit into from
May 10, 2023

Conversation

LucianoPAlmeida
Copy link
Contributor

Very small diagnostic QOI one
When in a declaration, the fix-it to move the attribute cannot be applied in all cases. So doing extra checks to be more conservative and add a couple of more test for this.

Resolves #65705

@LucianoPAlmeida
Copy link
Contributor Author

@swift-ci Please test

Copy link
Contributor

@xedin xedin left a comment

Choose a reason for hiding this comment

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

Seems reasonable to me but @rintaro and @ahoppen should take a look.

@ahoppen
Copy link
Member

ahoppen commented May 9, 2023

@swift-ci Please smoke test

@LucianoPAlmeida
Copy link
Contributor Author

@swift-ci Please smoke test MacOS platform

@LucianoPAlmeida
Copy link
Contributor Author

@swift-ci Please test Windows platform

@LucianoPAlmeida LucianoPAlmeida merged commit 2407256 into swiftlang:main May 10, 2023
@LucianoPAlmeida LucianoPAlmeida deleted the parse-attr-fix-it branch May 10, 2023 02:11
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.

@discardableResult fix-it is wrong when placed on variable declaration
3 participants