swc_ecma_transforms_macros/
common.rs

1/// Type of the visitor.
2
3#[derive(Debug, Clone, Copy)]
4pub enum Mode {
5    Fold,
6    VisitMut,
7}
8
9impl Mode {
10    pub fn prefix(self) -> &'static str {
11        match self {
12            Mode::Fold => "fold",
13            Mode::VisitMut => "visit_mut",
14        }
15    }
16}