Skip to content
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

Don't raise RS1039 when passing LocalFunctionStatementSyntax #7062

Merged
merged 1 commit into from
Nov 30, 2023

Conversation

CollinAlpert
Copy link
Contributor

This PR prevents raising RS1039 when passing a LocalFunctionStatementSyntax to SemanticModel.GetDeclaredSymbol. Currently the analyzer relies on the SemanticModel overloads and there currently is no overload for LocalFunctionStatementSyntax.
dotnet/roslyn#71028 tracks an API proposal to add this.

Fixes #7061

@CollinAlpert CollinAlpert requested a review from a team as a code owner November 30, 2023 10:17
Copy link

codecov bot commented Nov 30, 2023

Codecov Report

Merging #7062 (ced385f) into main (d0e4558) will decrease coverage by 0.01%.
The diff coverage is 100.00%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7062      +/-   ##
==========================================
- Coverage   96.43%   96.43%   -0.01%     
==========================================
  Files        1412     1412              
  Lines      336712   336717       +5     
  Branches    11142    11142              
==========================================
+ Hits       324701   324705       +4     
  Misses       9209     9209              
- Partials     2802     2803       +1     

@mavasani mavasani merged commit 793f8f2 into dotnet:main Nov 30, 2023
14 checks passed
@CollinAlpert CollinAlpert deleted the issue-7061 branch November 30, 2023 13:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants