Function cairo_lang_compiler::diagnostics::check_diagnostics
source · pub fn check_diagnostics<'a>(
db: &mut RootDatabase,
on_diagnostic: Option<Box<dyn FnMut(String) + 'a>>
) -> bool
Expand description
Checks if there are diagnostics and reports them to the provided callback as strings.
Returns true
if diagnostics were found.