Skip to content

Compare Token.tokenKind instead of Token.text in a couple of places in SwiftOperators #2013

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
Aug 7, 2023

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented Aug 7, 2023

Comparing tokenKind is the cleaner (and possibly also slightly more performant way) of checking the content of a token.

…es in SwiftOperators

Comparing `tokenKind` is the cleaner (and possibly also slightly more performant way) of checking the content of a token.
@ahoppen ahoppen requested a review from bnbarham August 7, 2023 03:18
@ahoppen ahoppen requested a review from DougGregor as a code owner August 7, 2023 03:18
@ahoppen
Copy link
Member Author

ahoppen commented Aug 7, 2023

@swift-ci Please test

@ahoppen ahoppen merged commit b8ce7f8 into swiftlang:main Aug 7, 2023
@ahoppen ahoppen deleted the ahoppen/tokenkind-instead-of-text branch August 7, 2023 17:16
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.

3 participants