Skip to content

Make GlobalFlowStateAnalysis public #7679

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Thogsit
Copy link

@Thogsit Thogsit commented Jun 1, 2025

Goal

This PR's purpose is to make the GlobalFlowStateAnalysis usable by external analyzers.

Why?

As discussed in this issue/answer, it has been recommended by @mavasani for use by 3rd party analyzers:

One suggestion is to try and mimic the approach used by PlatformCompatilibity analyzer and use the newly added GlobalFlowStateAnalysis [...]

Currently though, the GlobalFlowStateAnalysis is marked internal and as such not easily usable by a 3rd party analyzer.
I'm working on my Master Thesis at the moment and am building a custom analyzer on top of the GlobalFlowStateAnalysis; which works fine when circumventing the internal guard. I'd like though to be able and to enable others to use it without any dirty hacks :).

How

I've tried to do as few changes as absolutely required; as such, the PR only changed the internal keyword of the GlobalFlowStateAnalysis class to public and then changed visibility for all classes it inherits from so that it correctly compiles.

This is my first PR to the project, so please be open with your advice if anything's not as it should be.

Thanks!

@Thogsit Thogsit requested a review from a team as a code owner June 1, 2025 13:57
@Thogsit
Copy link
Author

Thogsit commented Jun 1, 2025

@dotnet-policy-service agree

Copy link

codecov bot commented Jun 1, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.84%. Comparing base (08c7a92) to head (0e73adf).
Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #7679   +/-   ##
=======================================
  Coverage   96.84%   96.84%           
=======================================
  Files        1220     1220           
  Lines      308790   308790           
  Branches     9554     9554           
=======================================
+ Hits       299044   299051    +7     
+ Misses       7399     7393    -6     
+ Partials     2347     2346    -1     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant