leo_errors::emitter

Trait Emitter

Source
pub trait Emitter {
    // Required methods
    fn emit_err(&mut self, err: LeoError);
    fn last_emitted_err_code(&self) -> Option<i32>;
    fn emit_warning(&mut self, warning: LeoWarning);
}
Expand description

Types that are sinks for compiler errors.

Required Methods§

Source

fn emit_err(&mut self, err: LeoError)

Emit the error err.

Source

fn last_emitted_err_code(&self) -> Option<i32>

Tracks last emitted error.

Source

fn emit_warning(&mut self, warning: LeoWarning)

Emit the warning.

Implementors§