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

Standardize Enum.HasFlag #127

Open
Noggog opened this issue Sep 23, 2024 · 0 comments
Open

Standardize Enum.HasFlag #127

Noggog opened this issue Sep 23, 2024 · 0 comments
Labels
engine A feature for the analyzer engine itself

Comments

@Noggog
Copy link
Member

Noggog commented Sep 23, 2024

Eventually I think we'll add a "fast" HasFlag option. On the back of a project/concept like this:
https://github.com/EngRajabi/Enum.Source.Generator
I dont know that that one specifically is good enough, but I might make one myself with our needs sometime.

and it'll be easier to find/replace HasFlag calls rather than the raw bit comparison alternative. If we have the raw alternative in the repo, new analyzers will copy the pattern and it'll be a bit of a mess

@Noggog Noggog added the engine A feature for the analyzer engine itself label Sep 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
engine A feature for the analyzer engine itself
Projects
None yet
Development

No branches or pull requests

1 participant