pub trait Parallel: Send + Sync {
    fn create(&self) -> Self;
    fn merge(&mut self, other: Self);

    fn after_stmts(&mut self, _stmts: &mut Vec<Stmt>) { ... }
    fn after_module_items(&mut self, _stmts: &mut Vec<ModuleItem>) { ... }
}

Required Methods

Used to create visitor.

This can be called in anytime.

Provided Methods

Invoked after visiting all Stmts, possibly in parallel.

Invoked after visiting all ModuleItems, possibly in parallel.

Implementors