Skip to content

Rename TokenKind.eof to TokenKind.endOfFile #1840

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

Closed

Conversation

mininny
Copy link
Contributor

@mininny mininny commented Jun 25, 2023

Resolves #1837
rdar://111217077

This PR renames TokenKind.eof to TokenKind.endOfFile and TokenSyntax.eof() to TokenSyntax.endOfFile()

@mininny mininny requested a review from ahoppen as a code owner June 25, 2023 05:10
case eof
case endOfFile
Copy link
Member

@TTOzzi TTOzzi Jun 25, 2023

Choose a reason for hiding this comment

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

Hello @mininny 👋
The subfiles in the directory generated are automatically generated through CodeGeneration.
(For example, TokenKind.swift is generated by CodeGeneration's TokenKindFile.swift.)
You need to change the code in CodeGeneration and refer to the instructions in these documents to generate the code 🙂
https://github.com/apple/swift-syntax/blob/main/CONTRIBUTING.md#generating-source-code
https://github.com/apple/swift-syntax/blob/main/CodeGeneration/README.md

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I see, thanks! I'll rebuild the project with codegen. It's my first time contributing here so I didn't realize it. Please disregard this PR for now :)

@mininny
Copy link
Contributor Author

mininny commented Jun 25, 2023

Closing in favor of #1842

@mininny mininny closed this Jun 25, 2023
@mininny mininny deleted the mininny/1837-rename-eof-to-endOfFile branch June 25, 2023 13: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.

Rename TokenKind.eof to TokenKind.endOfFile
2 participants