Skip to main content

Module diagnostics

Module diagnostics 

Source
Expand description

Checks Adam source text without executing it or opening an LSP transport.

let diagnostics = adam_lsp::diagnostics::diagnostics_for_source(
    "sheet example { cell x: i32 = true; }",
);
assert!(!diagnostics.is_empty());

Functionsยง

diagnostics_for_module
Checks a registered module collection without executing defaults, methods or match keys.
diagnostics_for_source
Parses and checks one complete Adam module without executing its expressions.