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

Refactor used attributes #6795

Merged
merged 5 commits into from
May 31, 2024
Merged

Refactor used attributes #6795

merged 5 commits into from
May 31, 2024

Conversation

cristianoc
Copy link
Collaborator

No description provided.

@cknitt
Copy link
Member

cknitt commented May 30, 2024

This looks great! Thanks!

But somehow it still doesn't do the trick.
If I enable "as" in Bs_ast_invariant.is_bs_attribute, I still get all the "unused attribute" warnings for @as in untagged variants, even though you added the Used_attributes.mark_used_attribute call there.

@cristianoc
Copy link
Collaborator Author

Probably the check for unused attributes runs before the untagged variants are processed.

@cristianoc
Copy link
Collaborator Author

Seems to be working with the last commit.

@cknitt
Copy link
Member

cknitt commented May 31, 2024

Thanks a lot! 🎉

I pushed another commit because code formatting was incorrect, but it seems it is only checked together with the syntax tests (which are only run if something in the syntax package changed).

@cknitt
Copy link
Member

cknitt commented May 31, 2024

Will also add a CHANGELOG entry, but need to rebase for that.

@cknitt cknitt merged commit 6ec02b1 into master May 31, 2024
19 checks passed
@cknitt cknitt deleted the used_attributes branch July 27, 2024 05:30
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