Skip to main content

compile_with_source

Function compile_with_source 

Source
pub fn compile_with_source(
    program: &Program,
    source: Option<Arc<str>>,
) -> Result<Chunk, CompileError>
Expand description

Compile, tagging the chunk with a source file path so runtime errors can report file:line (issue #74). The line table is built during compilation and survives the in-place peephole pass; it is not serialized.