Struct syntax::errors::json::JsonEmitter
[−]
[src]
pub struct JsonEmitter { // some fields omitted }
Unstable (
rustc_private
)Methods
impl JsonEmitter
[src]
fn basic() -> JsonEmitter
fn stderr(registry: Option<Registry>, code_map: Rc<CodeMap>) -> JsonEmitter
Trait Implementations
impl Emitter for JsonEmitter
[src]
fn emit(&mut self, span: &MultiSpan, msg: &str, code: Option<&str>, level: Level)
Emit a standalone diagnostic message.
fn emit_struct(&mut self, db: &DiagnosticBuilder)
Emit a structured diagnostic.