Skip to content

Commit 9962c9c

Browse files
authoredJan 19, 2025
doc(es/parallel): Improve document of Parallel (#9896)
**Description:** Document that `after_*` is not used for `visit_*_par`
1 parent 134000f commit 9962c9c

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed
 

‎.changeset/friendly-crews-breathe.md

+6
Original file line numberDiff line numberDiff line change
@@ -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

+6
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,15 @@ pub trait Parallel: swc_common::sync::Send + swc_common::sync::Sync {
2222
fn merge(&mut self, other: Self);
2323

2424
/// Invoked after visiting all [Stmt]s, possibly in parallel.
25+
///
26+
///
27+
/// Note: `visit_*_par` never calls this.
2528
fn after_stmts(&mut self, _stmts: &mut Vec<Stmt>) {}
2629

2730
/// Invoked after visiting all [ModuleItem]s, possibly in parallel.
31+
///
32+
///
33+
/// Note: `visit_*_par` never calls this.
2834
fn after_module_items(&mut self, _stmts: &mut Vec<ModuleItem>) {}
2935
}
3036

0 commit comments

Comments
 (0)
Please sign in to comment.