We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25f0c9b commit 7946b24Copy full SHA for 7946b24
crates/swc_ecma_transforms_proposal/src/decorator_impl.rs
@@ -1054,6 +1054,13 @@ impl VisitMut for DecoratorPass {
1054
self.state.extra_stmts = old_stmts;
1055
}
1056
1057
+ fn visit_mut_class_decl(&mut self, n: &mut ClassDecl) {
1058
+ let old_class_name = self.state.class_name.take();
1059
+ self.state.class_name = Some(n.ident.clone());
1060
+ n.visit_mut_children_with(self);
1061
+ self.state.class_name = old_class_name;
1062
+ }
1063
+
1064
fn visit_mut_class_member(&mut self, n: &mut ClassMember) {
1065
n.visit_mut_children_with(self);
1066
0 commit comments