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

Fixed the case where one of the alternative of an ambiguity is an emp… #2084

Merged

Conversation

PieterOlivier
Copy link
Contributor

Previously, when during error disambiguation one of the ambiguities consisted of an error tree with an empty "skipped" part (could only happen at the end of the file), that ambiguity was considered error-free. If there where other "regular" ambiguities in the ambiguity node, this node was not dropped as it should have been.

This PR fixes that.

Copy link

codecov bot commented Nov 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 49%. Comparing base (c460e2c) to head (8c405fc).
Report is 3 commits behind head on feat/error-recovery.

Additional details and impacted files
@@                  Coverage Diff                  @@
##             feat/error-recovery   #2084   +/-   ##
=====================================================
  Coverage                     49%     49%           
  Complexity                  6619    6619           
=====================================================
  Files                        687     687           
  Lines                      61215   61218    +3     
  Branches                    8874    8874           
=====================================================
+ Hits                       30366   30369    +3     
+ Misses                     28622   28620    -2     
- Partials                    2227    2229    +2     

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

@PieterOlivier PieterOlivier merged commit 1aee3c4 into feat/error-recovery Dec 17, 2024
7 checks passed
@PieterOlivier PieterOlivier deleted the recovery/empty-error-disambiguation-fix branch December 17, 2024 10:10
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