pub trait Emitter {
    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

Emit the error err.

Tracks last emitted error.

Emit the warning.

Implementors