Skip to content
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

Fix renaming data constructors with fields (resolves #2915, resolves #4083) #4089

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

jhrcek
Copy link
Collaborator

@jhrcek jhrcek commented Feb 21, 2024

This only works for renaming across single file.
To make the multi-file scenario work, we'll need something like wz1000/HieDb#73

@fendor fendor added the status: needs review This PR is ready for review label Mar 2, 2024
@jhrcek jhrcek force-pushed the jhrcek/rename-data-constructors-with-fields branch from a91e355 to 6d8dfd1 Compare March 2, 2024 16:07
@jhrcek
Copy link
Collaborator Author

jhrcek commented Mar 2, 2024

I'm turning this back to draft, because @michaelpj pointed out that ignoring GeneratedInfo in HieAST could lead to some issue down the line (where we ignore something that shouldn't be ignored) and he proposed an alternative approach to avoiding renaming things that should not be renamed: namely validating that each Range being renamed actually contains the Text corresponding to the old name.

@jhrcek jhrcek marked this pull request as draft March 2, 2024 16:10
@fendor fendor removed the status: needs review This PR is ready for review label Mar 20, 2024
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.

None yet

2 participants