pub fn compile_polydat_checked(
source: &str,
) -> (Result<Box<dyn Kernel>, ()>, DiagnosticReport)Expand description
Compile with full diagnostics: errors, warnings, suggestions, on the default engine.
Returns (Ok(kernel), report) on success with possible warnings,
or (Err(()), report) on failure with errors. The report always
contains all diagnostics. The program the report describes is the
program the kernel runs: the same compile every entry point makes.