Struct syntax::json::JsonEmitter
[−]
[src]
pub struct JsonEmitter { /* fields omitted */ }
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Methods
impl JsonEmitter
[src]
pub fn stderr(
registry: Option<Registry>,
code_map: Rc<CodeMap>,
pretty: bool
) -> JsonEmitter
[src]
registry: Option<Registry>,
code_map: Rc<CodeMap>,
pretty: bool
) -> JsonEmitter
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn basic(pretty: bool) -> JsonEmitter
[src]
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn new(
dst: Box<Write + Send>,
registry: Option<Registry>,
code_map: Rc<CodeMap>,
pretty: bool
) -> JsonEmitter
[src]
dst: Box<Write + Send>,
registry: Option<Registry>,
code_map: Rc<CodeMap>,
pretty: bool
) -> JsonEmitter
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Trait Implementations
impl Emitter for JsonEmitter
[src]
fn emit(&mut self, db: &DiagnosticBuilder)
[src]
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Emit a structured diagnostic.