Skip to main content

dump_function_spans

Function dump_function_spans 

Source
pub fn dump_function_spans(spans: Vec<FunctionSpan>, path: &Path) -> Result<()>
Expand description

Render spans for path to colored stdout (nothing when spans is empty). Callers obtain spans from crate::Ast::functions and render them without naming the parser surface. Mirrors the self-contained-stdout shape of crate::dump_root / crate::dump_ops.

ยงErrors

Propagates any std::io::Error from writing to stdout.