Skip to content

[Parse] Remove unused parameters and return value of lexTrivia function #70713

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
Jan 5, 2024

Conversation

pinkjuice66
Copy link
Contributor

@pinkjuice66 pinkjuice66 commented Jan 4, 2024

It appears that we may not have been consistently tracking leading and trailing trivia in the Lexer since the removal of libSyntax (see #62145).
Consequently, it seems unnecessary to consider leading or trailing trivia in the lexTrivia function.
To align with this decision, I have modified the lexTrivia function's signature to ensure adherence to the new criteria.

P.S. As I am super new to this project, please feel free to correct me if I have any misunderstandings on this topic.

@rintaro
Copy link
Member

rintaro commented Jan 4, 2024

@swift-ci Please smoke test

@rintaro rintaro closed this Jan 4, 2024
@rintaro rintaro reopened this Jan 4, 2024
@rintaro
Copy link
Member

rintaro commented Jan 4, 2024

(Sorry I clicked "Close with comment" by accident.)

Copy link
Member

@rintaro rintaro left a comment

Choose a reason for hiding this comment

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

Thank you @pinkjuice66 !

@rintaro rintaro merged commit dafcec6 into swiftlang:main Jan 5, 2024
@pinkjuice66 pinkjuice66 deleted the parse-lexer-lextrivia branch January 7, 2024 08:28
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