Skip to content

Make definition nesting usable for constant resolution#877

Draft
soutaro wants to merge 4 commits into
mainfrom
codex/rubydex-resolve-constant
Draft

Make definition nesting usable for constant resolution#877
soutaro wants to merge 4 commits into
mainfrom
codex/rubydex-resolve-constant

Conversation

@soutaro

@soutaro soutaro commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add recursive constant resolution for API-created name chains.
  • Make Ruby Graph#resolve_constant use recursive resolution so rooted nesting frames resolve correctly.
  • Add source_name for class, module, and constant definitions so callers can preserve source-level constant paths like ::Bar.

Tests

  • cargo test -p rubydex recursive_constant_resolution
  • cargo test -p rubydex-sys
  • shadowenv exec -- bundle exec rake compile
  • shadowenv exec -- bundle exec ruby -Itest test/graph_test.rb
  • shadowenv exec -- bundle exec ruby -Itest test/definition_test.rb -n /source_name/

soutaro added 4 commits June 25, 2026 16:21
Assisted-By: devx/7c3d70e1-327c-4158-8ab5-ffccba197089
Assisted-By: devx/7c3d70e1-327c-4158-8ab5-ffccba197089
Assisted-By: devx/7c3d70e1-327c-4158-8ab5-ffccba197089
Assisted-By: devx/7c3d70e1-327c-4158-8ab5-ffccba197089
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