Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 missing [Generator] attribute analyzer and code fix #5235
Add missing [Generator] attribute analyzer and code fix #5235
Changes from 22 commits
38aaa2b
82f5da3
261db90
d1fbafa
f8f5015
8bfe76a
e9528d8
edeb51e
e9c4432
4399ef3
51de378
e743540
27433df
f6defd2
e2b0caa
d47cb84
1fc9be2
2d5e21b
81fad3a
7e93a8d
e824d24
96a23be
2f43a82
8686834
175bba9
bdf1cf6
f1e082d
8e52556
5604cdc
7d63d31
f9c3aff
8bd19df
1910bc4
3a244e8
79d0ef2
469c749
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are not really consistent for naming of the code fix titles but I would avoid
_X
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the way to distinguish between this and
AddGeneratorAttribute_2
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe
_OneLanguage
and_TwoLanguages
? Otherwise you could use the naming style from Roslyn here.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❓ Can we adopt the same logic from
DiagnosticAnalyzerAttributeAnalyzer.AttributeAnalyzer
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's some things that I think are different in this case. Can you explain the benefit in the complexity that the
DiagnosticAnalyzerAttributeAnalyzer.AttributeAnalyzer
has? It looks like it has logic to determine what languages are supported based on referenced assemblies.