compile_source

Function compile_source 

Source
pub fn compile_source(
    source: &str,
    filename: &str,
    options: &CompileOptions,
) -> Result<CompileOutput, Vec<Diagnostic>>
Expand description

Compile a single source string through the full pipeline (lex → parse → typecheck → MIR → borrowck).

Returns the compiled MIR context ready for code generation, or diagnostics on failure.