Skip to main content

parse_with_span

Function parse_with_span 

Source
pub fn parse_with_span(input: &str) -> Result<Program, ParseErrorWithSpan>
Expand description

Like parse, but on failure also reports where in the source the parser gave up. Existing callers should keep using parse — this is additive, for the --json CLI contract’s location reporting.