Skip to main content

run_plugins

Function run_plugins 

Source
pub fn run_plugins(
    directives: &mut Vec<Spanned<Directive>>,
    file_plugins: &[Plugin],
    file_options: &Options,
    options: &LoadOptions,
    source_map: &SourceMap,
    errors: &mut Vec<LedgerError>,
    pass: PluginPass,
) -> Result<(), ProcessError>
Expand description

Run plugins on directives.

Executes native plugins (and document discovery) on the given directives, modifying them in-place. Plugin errors are appended to errors.

pass selects which subset of plugins to run — see PluginPass. The loader pipeline calls this twice (synth pass before Early, regular pass after booking). LSP / FFI / standalone callers pass PluginPass::All for the historical behavior.