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.
An alternative approach to https://github.com/wz1000/HieDb/pull/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.