@@ -10,7 +10,7 @@ use swc_core::ecma::{
1010 ast:: {
1111 ArrowExpr , AssignExpr , AssignTarget , BlockStmt , ClassDecl , ClassExpr , ClassMethod ,
1212 Constructor , Expr , FnDecl , FnExpr , Ident , Lit , MemberProp , MethodProp , Module , ModuleItem ,
13- Param , Pat , PropName , PrivateMethod , Script , SimpleAssignTarget , Stmt , Str , VarDecl ,
13+ Param , Pat , PrivateMethod , PropName , Script , SimpleAssignTarget , Stmt , Str , VarDecl ,
1414 } ,
1515 atoms:: Atom ,
1616} ;
@@ -310,7 +310,7 @@ impl Instrumentation {
310310 } ) ;
311311 true
312312 }
313-
313+
314314 pub fn visit_mut_class_method ( & mut self , node : & mut ClassMethod ) -> bool {
315315 let name = match & node. key {
316316 PropName :: Ident ( ident) => ident. sym . clone ( ) ,
@@ -334,7 +334,7 @@ impl Instrumentation {
334334 }
335335 true
336336 }
337-
337+
338338 pub fn visit_mut_private_method ( & mut self , node : & mut PrivateMethod ) -> bool {
339339 let name = node. key . name . clone ( ) ;
340340
@@ -356,7 +356,6 @@ impl Instrumentation {
356356 true
357357 }
358358
359-
360359 pub fn visit_mut_constructor ( & mut self , node : & mut Constructor ) -> bool {
361360 if !self . is_correct_class || self . config . function_query . name ( ) != "constructor" {
362361 return false ;
0 commit comments