Skip to content

Remove TokenSyntax shorthand static members for SwiftSyntaxBuilder #1231

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

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented Jan 14, 2023

In an effort to unify SwiftSyntax and SwiftSyntaxBuilder I think we should remove the shorthand static members to create tokens in SwiftSyntaxBuilder that drop the Token suffix.

In a follow-up PR I will investigate whether it makes sense to drop the Token suffix from the token static members in SwiftSyntax.

rdar://104090850

In an effort to unify SwiftSyntax and SwiftSyntaxBuilder I think we should remove the shorthand static members to create tokens in SwiftSyntaxBuilder that drop the `Token` suffix.

In a follow-up PR I will investigate whether it makes sense to drop the `Token` suffix from the token static members in SwiftSyntax.

rdar://104090850
@ahoppen ahoppen requested review from bnbarham and kimdv January 14, 2023 08:00
Copy link
Contributor

@kimdv kimdv left a comment

Choose a reason for hiding this comment

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

I like it, a bit more clean and readable 🚀

@ahoppen
Copy link
Member Author

ahoppen commented Jan 14, 2023

@swift-ci Please test

@ahoppen ahoppen merged commit abc66e0 into swiftlang:main Jan 16, 2023
@ahoppen ahoppen deleted the ahoppen/no-token-shorthand-inits-in-builder branch January 16, 2023 08:38
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