swc_ecma_transforms_macros/
common.rs1#[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}