roc/crates/compiler/load_internal/src
Joshua Warner 2d9aba2242
Refactor parser methods to not return State as part of ParseError
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.
2022-11-18 19:52:23 -05:00
..
docs.rs Basic support for multi-ability docs 2022-10-24 14:00:46 -05:00
file.rs Refactor parser methods to not return State as part of ParseError 2022-11-18 19:52:23 -05:00
lib.rs updating rust package documentation 2022-11-03 20:00:06 +11:00
wasm_instant.rs Use Instant over SystemTime to record timings 2022-07-22 10:03:47 +02:00
work.rs Comments and optimizations for builtins 2022-10-02 21:38:03 -05:00