Skip to main content

parse_source_with_positions

Function parse_source_with_positions 

Source
pub fn parse_source_with_positions(
    src: &str,
) -> Result<(Program, FnPositions), SyntaxError>
Expand description

Variant of parse_source that also returns the byte-offset position of each top-level fn declaration in src. Used by the lex check CLI (and any other LLM-facing tooling) to stamp source positions onto lex_types::PositionedErrors.