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

Simplify HostAnalysisScope storage #74055

Merged
merged 3 commits into from
Jul 19, 2024
Merged

Conversation

sharwell
Copy link
Member

@sharwell sharwell commented Jun 18, 2024

Starting with #28918, this type only ever exists in the context of a single analyzer, so we can remove the maps it contains and simplify calls into it.

@dotnet-issue-labeler dotnet-issue-labeler bot added Area-Analyzers untriaged Issues and PRs which have not yet been triaged by a lead labels Jun 18, 2024
@sharwell sharwell changed the title Verify that HostAnalysisScope is only ever used in the context of a single analyzer Simplify HostAnalysisScope since it is only ever used in the context of a single analyzer Jun 19, 2024
Starting with dotnet#28918, this type only ever exists in the context of a
single analyzer, so we can remove the maps it contains and simplify
calls into it.
@sharwell sharwell changed the title Simplify HostAnalysisScope since it is only ever used in the context of a single analyzer Simplify HostAnalysisScope storage Jun 19, 2024
@sharwell sharwell marked this pull request as ready for review June 20, 2024 12:43
@sharwell sharwell requested a review from a team as a code owner June 20, 2024 12:43
@sharwell
Copy link
Member Author

sharwell commented Jul 2, 2024

@dotnet/roslyn-compiler for reviews

@sharwell
Copy link
Member Author

sharwell commented Jul 3, 2024

@dotnet/roslyn-compiler for second review

@@ -19,102 +19,100 @@ namespace Microsoft.CodeAnalysis.Diagnostics
/// </summary>
internal sealed class AnalyzerAnalysisContext : AnalysisContext
Copy link
Member

Choose a reason for hiding this comment

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

Man, this type itself is starting to feel a bit redundant now...

@sharwell sharwell merged commit dabf0a7 into dotnet:main Jul 19, 2024
24 checks passed
@sharwell sharwell deleted the verify-calls branch July 19, 2024 14:47
@dotnet-policy-service dotnet-policy-service bot added this to the Next milestone Jul 19, 2024
@RikkiGibson RikkiGibson modified the milestones: Next, 17.12 P1 Jul 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Analyzers untriaged Issues and PRs which have not yet been triaged by a lead
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants