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

Fix diagnostics for namespaces with internal partial types #1426

Merged
merged 3 commits into from
Jan 8, 2024

Conversation

manodasanW
Copy link
Member

The diagnostics analyzer for namespaces found all the namespaces which had public types and then made sure they are a subset of the one which the authored component is. As part of determining public types, the check also considered partial types to be public with the assumption that it would later to be checked to figure out whether it is really public or not. But for the namespace diagnostics this wasn't done as it is done in other scenarios. In addition, partial types don't matter for namespace diagnostics as the diagnostics analyzer will see at least one of the partial types with its declared accessibility. Due to that, this PR addresses this issue by making the namespace check only look for public types and not partial ones.

Fixes #1425

…s due to the IsPublic check treated partial as public
Co-authored-by: Vineeth Thomas Alex <vineeththomasalex@gmail.com>
@manodasanW manodasanW merged commit eb066e4 into master Jan 8, 2024
10 of 11 checks passed
@manodasanW manodasanW deleted the manodasanw/namespacediagnostics branch January 8, 2024 21:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants