Skip to content

Fix CSharpSimplifyPropertyAccessorDiagnosticAnalyzer#82776

Open
DoctorKrolic wants to merge 3 commits intodotnet:mainfrom
DoctorKrolic:fix-simplify-property-accessors
Open

Fix CSharpSimplifyPropertyAccessorDiagnosticAnalyzer#82776
DoctorKrolic wants to merge 3 commits intodotnet:mainfrom
DoctorKrolic:fix-simplify-property-accessors

Conversation

@DoctorKrolic
Copy link
Contributor

@DoctorKrolic DoctorKrolic commented Mar 15, 2026

Fixes: #82739

It seems that DiagnosticAnalyzerCategory.SyntaxTreeWithoutSemanticsAnalysis can only register syntax tree actions and syntax node actions are considered semantic since their context also contains semantic information. This is super unintuitive so I fell for it when wrote the analyzer in the first place. It is also a shame that there was nothing stopping us from shipping completely broken analyzer to the prod. Manually verified that the issue is fixed with this change

Microsoft Reviewers: Open in CodeFlow

@DoctorKrolic DoctorKrolic requested a review from a team as a code owner March 15, 2026 12:03
@dotnet-policy-service dotnet-policy-service bot added Community The pull request was submitted by a contributor who is not a Microsoft employee. VSCode labels Mar 15, 2026
@CyrusNajmabadi
Copy link
Contributor

It is also a shame that there was nothing stopping us from shipping completely broken analyzer to the prod

Feel free to change teh testing harness to find and react to this.

@DoctorKrolic DoctorKrolic changed the title Change category of CSharpSimplifyPropertyAccessorDiagnosticAnalyzer Fix CSharpSimplifyPropertyAccessorDiagnosticAnalyzer Mar 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area-Analyzers Community The pull request was submitted by a contributor who is not a Microsoft employee. VSCode

Projects

None yet

Development

Successfully merging this pull request may close these issues.

IDE0360 analyzer is not working

3 participants