Function codespan_reporting::term::emit

source ·
pub fn emit<'files, F: Files<'files>>(
    writer: &mut dyn WriteColor,
    config: &Config,
    files: &'files F,
    diagnostic: &Diagnostic<F::FileId>
) -> Result<(), Error>
Expand description

Emit a diagnostic using the given writer, context, config, and files.

The return value covers all error cases. These error case can arise if:

  • a file was removed from the file database.
  • a file was changed so that it is too small to have an index
  • IO fails