Struct codemap_diagnostic::Emitter
[−]
[src]
pub struct Emitter<'a> { /* fields omitted */ }
Formats and prints diagnostic messages.
Methods
impl<'a> Emitter<'a>
[src]
fn stderr(color_config: ColorConfig, code_map: Option<&'a CodeMap>) -> Emitter
Creates an emitter wrapping stderr.
fn new(dst: Box<Write + Send>, code_map: Option<&'a CodeMap>) -> Emitter<'a>
Creates an emitter wrapping a boxed Write
trait object.
fn emit(&mut self, msgs: &[Diagnostic])
Print a group of diagnostic messages.
The messages within a group are printed atomically without spacing between them, and share consistent formatting elements, such as aligned line number width.