Skip to content

refactor: move Rust value composition behind language dispatch - #259

Merged
swananan merged 2 commits into
mainfrom
refactor/rust-value-composition-dispatch
Jul 27, 2026
Merged

refactor: move Rust value composition behind language dispatch#259
swananan merged 2 commits into
mainfrom
refactor/rust-value-composition-dispatch

Conversation

@swananan

Copy link
Copy Markdown
Owner

Summary

  • move Rust aggregate and enum payload composition policy out of DwarfAnalyzer
  • dispatch nested composition through the source-language boundary with explicit not-applicable and handled-empty outcomes
  • keep recursion depth, cycle detection, and generic capture traversal in the analyzer
  • add focused coverage for language fallback and variant discriminant conditions

Testing

  • cargo fmt --all
  • CARGO_TARGET_DIR=/tmp/ghostscope-codex-target cargo test -p ghostscope-dwarf --lib (261 passed)
  • CARGO_TARGET_DIR=/tmp/ghostscope-codex-target cargo clippy --all-targets --all-features -- -D warnings
  • standard host-to-host e2e runner job 2b68b5b45809

swananan added 2 commits July 26, 2026 22:56
Keep recursive depth and cycle handling in DwarfAnalyzer while moving
Rust aggregate and enum payload policy into the Rust language module.
This keeps non-Rust types on the native DWARF path and makes future
language-specific composition explicit.
Move variant applicability out of DwarfAnalyzer and distinguish an
unhandled capture from a language-owned capture with no nested plan. This
preserves fallback behavior while keeping recursive orchestration generic.
@swananan
swananan merged commit bf5616e into main Jul 27, 2026
10 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.

1 participant