Skip to content

Support all ldloc/ldarg variants in TypeEqualityPatternAnalyzer#126203

Merged
MichalStrehovsky merged 2 commits intodotnet:mainfrom
larkliy:fix-type-analyzer
Mar 30, 2026
Merged

Support all ldloc/ldarg variants in TypeEqualityPatternAnalyzer#126203
MichalStrehovsky merged 2 commits intodotnet:mainfrom
larkliy:fix-type-analyzer

Conversation

@larkliy
Copy link
Copy Markdown
Contributor

@larkliy larkliy commented Mar 27, 2026

This change allows the analyzer to recognize type equality patterns even when long-form or short-parameter opcodes are used. Also updated the file to use modern C# pattern matching.

This change allows the analyzer to recognize type equality patterns even when long-form or short-parameter opcodes are used. Also updated the file to use modern C# pattern matching for better readability.
@dotnet-policy-service dotnet-policy-service bot added the community-contribution Indicates that the PR has been added by a community member label Mar 27, 2026
@dotnet-policy-service
Copy link
Copy Markdown
Contributor

Tagging subscribers to this area: @agocke, @dotnet/ilc-contrib
See info in area-owners.md if you want to be subscribed.

Copy link
Copy Markdown
Member

@MichalStrehovsky MichalStrehovsky left a comment

Choose a reason for hiding this comment

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

Thanks!

Co-authored-by: Michal Strehovský <MichalStrehovsky@users.noreply.github.com>
@MichalStrehovsky MichalStrehovsky self-assigned this Mar 30, 2026
@MichalStrehovsky MichalStrehovsky merged commit 508f440 into dotnet:main Mar 30, 2026
108 of 111 checks passed
@larkliy larkliy deleted the fix-type-analyzer branch March 30, 2026 11:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-NativeAOT-coreclr community-contribution Indicates that the PR has been added by a community member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants