Trait ErrorHandler

Source
pub trait ErrorHandler {
    // Provided method
    fn on_error(&self, _: CompilationError) { ... }
}
Expand description

This trait handles error occured in the compilation. NB: clone bound is needed since scan/parse/ir/code gen all requires ownership of a error report. Rc/RefCell is a good way to implement ErrorHandler if collecting errors in compilation pass is desired.

Provided Methods§

Implementors§