swc_ecma_transforms_classes/
macros.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/// Not intended for public use.
#[macro_export]
macro_rules! visit_mut_only_key {
    () => {
        fn visit_mut_class_member(&mut self, m: &mut ClassMember) {
            match m {
                ClassMember::Method(m) => m.key.visit_mut_with(self),
                ClassMember::PrivateMethod(m) => m.key.visit_mut_with(self),
                ClassMember::ClassProp(m) => m.key.visit_mut_with(self),
                ClassMember::PrivateProp(m) => m.key.visit_mut_with(self),
                _ => {}
            }
        }
    };
}