Trait swc_ecma_utils::parallel::Parallel
source · [−]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
Provided Methods
sourcefn after_stmts(&mut self, _stmts: &mut Vec<Stmt>)
fn after_stmts(&mut self, _stmts: &mut Vec<Stmt>)
Invoked after visiting all Stmts, possibly in parallel.
sourcefn after_module_items(&mut self, _stmts: &mut Vec<ModuleItem>)
fn after_module_items(&mut self, _stmts: &mut Vec<ModuleItem>)
Invoked after visiting all ModuleItems, possibly in parallel.