Skip to content

Follow alias target for visibility#793

Open
vinistock wants to merge 1 commit intomainfrom
05-07-default_method_alias_visibilities_to_public
Open

Follow alias target for visibility#793
vinistock wants to merge 1 commit intomainfrom
05-07-default_method_alias_visibilities_to_public

Conversation

@vinistock
Copy link
Copy Markdown
Member

@vinistock vinistock commented May 7, 2026

We were not following alias targets to get the inherited visibility of an alias. Additionally, we were returning None as the final fallback, which is reserved for declaration types where visibility simply doesn't apply (like ivars).

This PR makes sure we follow aliases to detect the inherited visibility and I changed the final fallback to public in case we fail to determine the visibility of a method. I also moved Todo together with Class since it's basically the same thing.

@vinistock vinistock self-assigned this May 7, 2026
@vinistock vinistock added the bugfix A change that fixes an existing bug label May 7, 2026
Copy link
Copy Markdown
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@vinistock vinistock marked this pull request as ready for review May 7, 2026 22:37
@vinistock vinistock requested a review from a team as a code owner May 7, 2026 22:37
@vinistock vinistock marked this pull request as draft May 8, 2026 19:08
@vinistock vinistock force-pushed the 05-07-default_method_alias_visibilities_to_public branch from 377d00d to e9a3175 Compare May 8, 2026 20:32
@vinistock vinistock changed the title Default method alias visibilities to public Follow alias target for visibility May 8, 2026
@vinistock vinistock marked this pull request as ready for review May 8, 2026 20:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix A change that fixes an existing bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant