Skip to main content

preprocess_with_overlay

Function preprocess_with_overlay 

Source
pub fn preprocess_with_overlay(
    main_text: &str,
    main_path: &str,
    root: &Path,
    overlay: &BTreeMap<String, String>,
) -> OpyResult<(Preprocessed, Vec<FileRecord>)>
Expand description

Preprocess with open-document overlays: includes resolve to overlay text (keyed by the include string or the resolved canonical path) before the filesystem. Overlays model unsaved editor buffers without changing the compiler’s source-loading contract.