Skip to main content

single_file_program

Function single_file_program 

Source
pub fn single_file_program(
    path: &str,
    source: &str,
    script: Script,
) -> Result<Program, Diagnostic>
Expand description

Build a one-file Program from an already-parsed script, resolving imports against the stdlib only. Used by the single-file generate/check APIs and the codegen unit tests, where no user modules are on disk to load.