Trait leo_errors::emitter::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§