mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 19:58:18 +00:00
![]() As previously discovered with #4464, it's easy to accidentally mis-use the State value returned on the Err path. There were mixed assumptions about what that State represents: (1) the State where the error occurred, or (2) the State at the beginning of the thing we were just parsing. I fixed this up to always mean (2) - at which point we don't actually need to return the State at all - so it's impossible for further discrepency to creep in. I also took the liberty to refactor a few more methods to be purely combinator-based, rather than calling `parse` directly. |
||
---|---|---|
.. | ||
snapshots | ||
test_parse.rs |