[][src]Trait swc_common::errors::emitter::Emitter

pub trait Emitter: Send {
    fn emit(&mut self, db: &DiagnosticBuilder<'_>);

    fn should_show_explain(&self) -> bool { ... }
}

Emitter trait for emitting errors.

Required methods

fn emit(&mut self, db: &DiagnosticBuilder<'_>)

Emit a structured diagnostic.

Loading content...

Provided methods

fn should_show_explain(&self) -> bool

Check if should show explanations about "rustc --explain"

Loading content...

Implementors

Loading content...