Skip to content

[Rename] Collection of improvements to make syntactic rename easier to read #70255

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 4 commits into from
Dec 7, 2023

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented Dec 6, 2023

A collection of four independent refactoring that simplify syntactic rename. Should be reviewable commit by commit.

@ahoppen
Copy link
Member Author

ahoppen commented Dec 6, 2023

@swift-ci Please smoke test

@ahoppen ahoppen force-pushed the ahoppen/rename-refactoring branch from c004f5c to 58ff819 Compare December 6, 2023 17:41
@ahoppen
Copy link
Member Author

ahoppen commented Dec 6, 2023

@swift-ci Please smoke test

@ahoppen ahoppen force-pushed the ahoppen/rename-refactoring branch from 58ff819 to 3e5a772 Compare December 6, 2023 19:31
@ahoppen
Copy link
Member Author

ahoppen commented Dec 6, 2023

@swift-ci Please smoke test

Refactor `addSyntacticRenameRanges`, adding comments to make it easier to follow and remove its dependency on the `IsFunctionLike` parameter in `RenameLoc`.
Remove unnecessary `ArrayRef` wrapping and introduce a struct instead of a `std::pair`.
It’s easier to understand the code if we don’t have these two nearly, but not quite, identical types.
@ahoppen ahoppen force-pushed the ahoppen/rename-refactoring branch from 3e5a772 to d53e1b9 Compare December 6, 2023 22:33
@ahoppen
Copy link
Member Author

ahoppen commented Dec 6, 2023

@swift-ci Please smoke test

@bnbarham
Copy link
Contributor

bnbarham commented Dec 7, 2023

@swift-ci please smoke test macOS platform

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