Skip to content

Conversation

@7h3kk1d
Copy link
Contributor

@7h3kk1d 7h3kk1d commented Nov 3, 2025

This is only handling leaf level preservation of segments and requires the id to be correctly maintained by the callsite (same id will result in same segment). We would like for non-leaf level formatting and incomplete syntax. I'm also not handling any extra parenthesization that needs to be inserted.

7h3kk1d and others added 3 commits November 3, 2025 11:09
…g transformations

- Introduce ~override parameter to exp_to_pretty and related functions in ExpToSegment.re to allow custom segment handling based on IDs
- Add new LiftToSegment.re module with lift_segment function for transforming expressions while preserving segment structure
- Update ErrorPrint.re to use any_to_segment for consistent segment-based printing
- Refactor ProdProjection handling in ExpToSegment.re for improved override integration
@codecov
Copy link

codecov bot commented Nov 10, 2025

Codecov Report

❌ Patch coverage is 82.87671% with 75 lines in your changes missing coverage. Please review.
✅ Project coverage is 51.58%. Comparing base (09b27d1) to head (bace958).

Files with missing lines Patch % Lines
src/haz3lcore/pretty/ExpToSegment.re 82.90% 74 Missing ⚠️
src/language/term/IdTagged.re 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##              dev    #2001      +/-   ##
==========================================
+ Coverage   51.44%   51.58%   +0.13%     
==========================================
  Files         209      210       +1     
  Lines       21721    21744      +23     
==========================================
+ Hits        11175    11217      +42     
+ Misses      10546    10527      -19     
Files with missing lines Coverage Δ
src/haz3lcore/LiftToSegment.re 100.00% <100.00%> (ø)
src/language/term/IdTagged.re 68.42% <0.00%> (+0.23%) ⬆️
src/haz3lcore/pretty/ExpToSegment.re 80.09% <82.90%> (+0.65%) ⬆️

... and 17 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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