Skip to main content

locate

Function locate 

Source
pub fn locate(
    source: &str,
    stream: &AtomStream,
    err: &ParseError<Span>,
) -> ParseFileError
Expand description

Reduce a failed parse to one position and one message.

stream must be the stream the parse ran on — that is where the high-water mark is. See the module doc for why the error tree alone is not enough.