pub trait DiagnosticReporter {
// Required methods
fn report(&mut self, diagnostics: &[ResolvedDiagnostics]);
fn register(&mut self, path: String, src: String) -> usize;
// Provided method
fn buffer(&self) -> Option<String> { ... }
}Expand description
the DiagnosticReporter decides on the format and where to report the diagnostic to. possible implementations could print to either std-out, std-err or a file, etc.
Required Methods§
Sourcefn report(&mut self, diagnostics: &[ResolvedDiagnostics])
fn report(&mut self, diagnostics: &[ResolvedDiagnostics])
reports the given diagnostic