Skip to content

Preserve visibility when sorting members - #3129

Merged
ksss merged 3 commits into
ruby:masterfrom
OskarEichler:codex/sorter-attribute-visibility
Sep 8, 2026
Merged

Preserve visibility when sorting members#3129
ksss merged 3 commits into
ruby:masterfrom
OskarEichler:codex/sorter-attribute-visibility

Conversation

@OskarEichler

Copy link
Copy Markdown
Contributor

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
Contributor 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.

@ksss ksss self-assigned this Sep 7, 2026
@ksss
ksss added this pull request to the merge queue Sep 8, 2026
Merged via the queue into ruby:master with commit 607e3ac Sep 8, 2026
24 checks passed
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.

2 participants