Skip to content

Preserve visibility when sorting members - #3129

Open
OskarEichler wants to merge 3 commits into
ruby:masterfrom
OskarEichler:codex/sorter-attribute-visibility
Open

Preserve visibility when sorting members#3129
OskarEichler wants to merge 3 commits into
ruby:masterfrom
OskarEichler:codex/sorter-attribute-visibility

Conversation

@OskarEichler

Copy link
Copy Markdown

Summary: keep instance attributes in their public/private groups and encode singleton visibility on the singleton members that it governs, avoiding invalid scope transfer.

Verification: focused baseline/fixed reproduction, combined RBS 4.2.0 consumer models, and RuboCop (738 files, zero offenses). No tests are added in this PR.

Compatibility: no public API removal or dependency/version change.

@OskarEichler

OskarEichler commented Aug 30, 2026

Copy link
Copy Markdown
Author

I updated the sorter expectation to match the intended inline singleton visibility output and added explicit coverage for both private singleton and private instance attributes in 864b5ad. The focused sorter test now passes, targeted RuboCop is clean, and git diff --check passes. This addresses the real cross-version test failures; the separate ruby-head stdlib failures are upstream drift shared by the other RBS PRs.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant