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§
Sourcefn last_emitted_err_code(&self) -> Option<i32>
fn last_emitted_err_code(&self) -> Option<i32>
Tracks last emitted error.
Sourcefn emit_warning(&mut self, warning: LeoWarning)
fn emit_warning(&mut self, warning: LeoWarning)
Emit the warning.