Skip to main content

evaluate_file

Function evaluate_file 

Source
pub fn evaluate_file(
    file_path: &str,
    options: EvaluateOptions,
) -> EvaluateResult
Expand description

Read a file from disk and evaluate it, honouring (import "...") directives. Mirrors evaluate() but takes a path on disk; relative imports inside the file are resolved against the file’s directory. A missing file is reported as an E007 diagnostic instead of an OS error.