Skip to content

[Syntax] Remove unnecessary special attribute arguments syntax kinds #3028

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 2 commits into from
Mar 31, 2025

Conversation

rintaro
Copy link
Member

@rintaro rintaro commented Mar 24, 2025

Many attributes can be expressed with the regular LabeledExprListSyntax. Custom attribute list syntax kinds and the custom parsing functions doesn't give us much benefit other than some ParserDiagnostics. Also those random selection of attribute kinds can be confusing.

@rintaro rintaro force-pushed the attributes-reorg branch 2 times, most recently from 1a0f9ee to 76f63cf Compare March 24, 2025 19:18
@rintaro rintaro changed the title [Syntax] Remove unnecessary custom attribute arguments syntax kinds [Syntax] Remove unnecessary special attribute arguments syntax kinds Mar 24, 2025
Some attributes are expressed with the regular 'LabeledExprListSyntax'
There's no need for special argument list syntax kind and keywords.
@rintaro
Copy link
Member Author

rintaro commented Mar 27, 2025

swiftlang/swift#80351
@swift-ci Please test

@rintaro
Copy link
Member Author

rintaro commented Mar 28, 2025

@rintaro
Copy link
Member Author

rintaro commented Mar 28, 2025

swiftlang/swift-format#971
swiftlang/swift#80351
@swift-ci Please test Windows

@rintaro rintaro marked this pull request as ready for review March 28, 2025 16:41
@bnbarham bnbarham merged commit f51c6cb into swiftlang:main Mar 31, 2025
24 checks passed
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