Skip to main content

with_parsed_program

Function with_parsed_program 

Source
pub fn with_parsed_program<R>(
    input: &str,
    f: impl for<'a> FnOnce(Result<(&'a [Stmt<'a>], &'a TypeRegistry, PolicyRegistry), String>, &'a Interner) -> R,
) -> R
Expand description

The execution front-end shared by every engine (see parse_seam): lex → MWE → discovery → parse, with the file’s ## No decorators installed as the active config. ## Require is NOT enforced here — this generic variant serves the differential-test seams and callers whose return type can’t carry a compile error; use with_parsed_program_checked for the emit paths that must fail an unfired ## Require.