Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Cleanup analyzers#9666

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
Youssef1313 wants to merge14 commits intodotnet:main
base:main
Choose a base branch
Loading
fromYoussef1313:dev/ygerges/analyzers

Conversation

@Youssef1313
Copy link
Member

@Youssef1313Youssef1313 commentedAug 30, 2025
edited
Loading

Current implementation of analyzers relies on syntax when it really needs semantics. This is a bad practice and is very error prone.

This PR modernizes few analyzer implementations to follow better practices and be more solid. There is much more to cleanup, but it's a good step so far.

ReubenBond reacted with heart emoji
Copy link
Contributor

CopilotAI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Pull Request Overview

This PR modernizes Orleans analyzer implementations by migrating from syntax-based analysis to semantic-based analysis using symbols. This improves reliability and follows analyzer best practices by avoiding error-prone syntax parsing.

Key changes:

  • Migration fromSyntaxNodeAnalysisContext toSymbolAnalysisContext across multiple analyzers
  • Introduction of newSymbolHelpers utility class for semantic operations
  • Removal of unused syntax-based helper methods fromSyntaxHelpers

Reviewed Changes

Copilot reviewed 14 out of 14 changed files in this pull request and generated 3 comments.

Show a summary per file
FileDescription
test/Analyzers.Tests/AbstractPropertiesCannotBeSerializedAnalyzerTest.csRemoved UTF-8 BOM character
src/Orleans.Analyzers/SyntaxHelpers.csRemoved unused syntax-based helper methods and made remaining methods private
src/Orleans.Analyzers/SymbolHelpers.csNew utility class with semantic-based helper methods
src/Orleans.Analyzers/SerializationAttributesHelper.csUpdated to use symbol-based analysis and removed unused properties
src/Orleans.Analyzers/NoRefParamsDiagnosticAnalyzer.csMigrated from syntax to symbol analysis
src/Orleans.Analyzers/IncorrectAttributeUseAnalyzer.csMigrated from syntax to symbol analysis
src/Orleans.Analyzers/IdClashAttributeAnalyzer.csMigrated from syntax to symbol analysis with improved type safety
src/Orleans.Analyzers/GrainInterfaceMethodReturnTypeDiagnosticAnalyzer.csMigrated from syntax to symbol analysis and simplified type checking
src/Orleans.Analyzers/GenerateGenerateSerializerAttributeAnalyzer.csMigrated from syntax to symbol analysis
src/Orleans.Analyzers/GenerateAliasAttributesAnalyzer.csMigrated from syntax to symbol analysis
src/Orleans.Analyzers/AtMostOneOrleansConstructorAnalyzer.csMigrated from syntax to symbol analysis with improved constructor counting
src/Orleans.Analyzers/AlwaysInterleaveDiagnosticAnalyzer.csMigrated from syntax to symbol analysis
src/Orleans.Analyzers/AliasClashAttributeAnalyzer.csMigrated from syntax to symbol analysis
src/Orleans.Analyzers/AbstractPropertiesCannotBeSerializedAnalyzer.csMigrated to operation-based analysis

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

Copilot code reviewCopilotCopilot left review comments

@ReubenBondReubenBondReubenBond approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@Youssef1313@ReubenBond

[8]ページ先頭

©2009-2025 Movatter.jp