usethesource / rascal

The implementation of the Rascal meta-programming language (including interpreter, type checker, parser generator, compiler and JVM based run-time system)
http://www.rascal-mpl.org
Other
408 stars 77 forks source link

added a function that can filter error trees which are in optional positions in a grammar (list elements and optionals) #2074

Open jurgenvinju opened 2 weeks ago

jurgenvinju commented 2 weeks ago

This could be one of those library functions in Recovery.rsc that is useful to call from a language service. It uses information from grammar rules (so "language-parametric") to decide that the error tree can be ignored in principle.

have to add tests for this of course, before we merge.

codecov[bot] commented 2 weeks ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 49%. Comparing base (415773f) to head (2725c65).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## feat/error-recovery #2074 +/- ## ===================================================== Coverage 49% 49% Complexity 6605 6605 ===================================================== Files 685 685 Lines 61148 61148 Branches 8850 8850 ===================================================== + Hits 30239 30243 +4 + Misses 28706 28702 -4 Partials 2203 2203 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.