We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
swc-project
Learn more about funding links in repositories.
Report abuse
Parallel
1 parent 134000f commit 9962c9cCopy full SHA for 9962c9c
.changeset/friendly-crews-breathe.md
@@ -0,0 +1,6 @@
1
+---
2
+swc_core: patch
3
+swc_ecma_utils: patch
4
5
+
6
+doc(es/parallel): Improve document of `Parallel`
crates/swc_ecma_utils/src/parallel.rs
@@ -22,9 +22,15 @@ pub trait Parallel: swc_common::sync::Send + swc_common::sync::Sync {
22
fn merge(&mut self, other: Self);
23
24
/// Invoked after visiting all [Stmt]s, possibly in parallel.
25
+ ///
26
27
+ /// Note: `visit_*_par` never calls this.
28
fn after_stmts(&mut self, _stmts: &mut Vec<Stmt>) {}
29
30
/// Invoked after visiting all [ModuleItem]s, possibly in parallel.
31
32
33
34
fn after_module_items(&mut self, _stmts: &mut Vec<ModuleItem>) {}
35
}
36
0 commit comments