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
feat: Roslyn Diagnostics Analyzer for empty constructor #2104
feat: Roslyn Diagnostics Analyzer for empty constructor #2104
Changes from all commits
4cda759
98076da
cd73a71
24f6059
efb3ac5
8ddcdf8
2b0b24e
9ef35e5
fda2676
cd4383c
d95fe27
bcbc64a
7814885
7bb11d6
3003c99
4ac4e43
1fdb3b2
2387b1a
a219276
850d4d7
db262d9
84c1376
4e81a8f
79e993f
05a8cda
6b9902b
b530e30
638333f
b8240ed
d8103fc
f7d5642
92dba62
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.
Where is it used? Is it required at runtime?
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.
https://github.com/stride3d/stride/pull/2104/files#diff-015a4d048579b446685ff8c8dbddb5302ff100cd3fbfc1df1cef57c74a4032b6R66
its used here for pattern matching as i got told that i should do it that way ( funny thing is that this part is the only one that doesnt work )
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.
Patter-matching is a feature of the language, it doesn't require an additional dependency. Your code seems to compile without Polysharp what does it add?
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.
System.Index and System.Index.GetOffset
ive changed it to a foreach loop now and added the analyzer removal back in
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.
Just to keep a trace of what we discussed on Discord:
netstandard2.0
is a requirement for analyzers/source generators. Nothing we can do about.