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

Add refs.is_generated to distinguish references from source/generated by ghc #77

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jhrcek
Copy link
Collaborator

@jhrcek jhrcek commented Jul 10, 2024

An alternative approach to #73

Instead of dropping all the generated references altogether, we just introduce a boolean flag to refs table that stores True for generated references, and False for references coming from source code.

The overall intention is to fix the hls-rename-plugin bug whereby it incorrectly renames all record fields whenever you rename record constructor, because in HieAST all field selectors have a generated reference to the constructor.

@jhrcek jhrcek force-pushed the jhrcek/renaming-constr-with-fields-2 branch from 9173b1f to dbaf56b Compare July 10, 2024 05:44
@jhrcek jhrcek changed the title Add refs.is_generated to distinguis references from source/generated by ghc Add refs.is_generated to distinguish references from source/generated by ghc Jul 10, 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.

1 participant