Skip to content

Tighten analyzer function visibility#75

Merged
dak2 merged 1 commit intomainfrom
migrate-implicit-self-constant-param-def-tests-to-ruby
Mar 22, 2026
Merged

Tighten analyzer function visibility#75
dak2 merged 1 commit intomainfrom
migrate-implicit-self-constant-param-def-tests-to-ruby

Conversation

@dak2
Copy link
Copy Markdown
Owner

@dak2 dak2 commented Mar 22, 2026

Motivation

As part of the test strategy rethink, integration-style tests for implicit self calls, constant resolution, parameters, and definitions have been migrated from Rust to Ruby. After this migration, several analyzer functions that were previously pub (to be accessible from removed Rust tests) no longer need public visibility since they are only called within the crate.

Changes

  • Narrowed visibility of functions in calls.rs, dispatch.rs, parameters.rs, and variables.rs from pub to pub(crate)
  • Enums AttrKind, DispatchResult, NeedsChildKind, MixinKind also narrowed to pub(crate)

Checked

  • cd core && cargo test --lib — all tests pass

🤖 Generated with Claude Code

@dak2 dak2 force-pushed the migrate-implicit-self-constant-param-def-tests-to-ruby branch from 318f24e to 3918110 Compare March 22, 2026 03:26
@dak2 dak2 changed the title Migrate implicit self, constant, parameter, and definition tests to Ruby Tighten analyzer function visibility Mar 22, 2026
After migrating integration-style tests from Rust to Ruby, several
analyzer functions no longer need pub visibility since they are only
used within the crate. Restricting to pub(crate) enforces proper
encapsulation and prevents unintended external usage.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@dak2 dak2 force-pushed the migrate-implicit-self-constant-param-def-tests-to-ruby branch from 3918110 to e2e8785 Compare March 22, 2026 03:33
@dak2 dak2 merged commit 2304c8f into main Mar 22, 2026
4 checks passed
@dak2 dak2 deleted the migrate-implicit-self-constant-param-def-tests-to-ruby branch March 22, 2026 03:43
@dak2 dak2 mentioned this pull request Mar 24, 2026
2 tasks
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