pub fn diagnostics(
src: &str,
known_series: Option<&[String]>,
) -> Vec<Diagnostic>Expand description
Compute diagnostics for src: the (single) parse or lex error if the source
is invalid, otherwise the semantic lints from crate::lint as ranged
warnings.
known_series is the engine’s list of valid data-series names. Pass it to
enable the unknown-series check (typo’d Data leaves, with did-you-mean
suggestions); pass None to skip it (unused-let warnings still fire). The
LSP/editor has no series list unless configured, so it defaults to None.