Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix various Match statement visitation errors #1161

Merged
merged 1 commit into from
Jun 12, 2024
Merged

fix various Match statement visitation errors #1161

merged 1 commit into from
Jun 12, 2024

Conversation

zsol
Copy link
Member

@zsol zsol commented Jun 12, 2024

fix various Match statement visitation errors

Fixes #1160.

This PR also

  • fixes whitespace_before_colon being swallowed during visitation on MatchCases
  • adds a new type of roundtrip test that catches issues of this class: the test applies a noop transformer to exercise the visitation API and compares the result with the original source.
  • adds a few more cases to the match fixture

Fixes #1160.

This PR also

- fixes `whitespace_before_colon` being swallowed during visitation on `MatchCase`s
- adds a new type of roundtrip test that catches issues of this class: the test applies a noop transformer to exercise the visitation API and compares the result with the original source.
- adds a few more cases to the match fixture
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jun 12, 2024
@zsol zsol marked this pull request as ready for review June 12, 2024 10:37
Copy link

codecov bot commented Jun 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.26%. Comparing base (9f6e276) to head (e259e18).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1161      +/-   ##
==========================================
+ Coverage   91.15%   91.26%   +0.10%     
==========================================
  Files         261      261              
  Lines       26864    26877      +13     
==========================================
+ Hits        24489    24529      +40     
+ Misses       2375     2348      -27     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@zsol zsol merged commit 8b97600 into main Jun 12, 2024
23 checks passed
@zsol zsol deleted the pr1161 branch June 12, 2024 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CST validation error on multiline match-case-if blocks
3 participants