@@ -25,7 +25,7 @@ use tsify::Tsify;
25
25
26
26
#[ visited_node(
27
27
scope( ScopeFlags :: Top ) ,
28
- strict_if( self . source_type. is_strict( ) || self . directives. iter( ) . any( Directive :: is_use_strict) )
28
+ strict_if( self . source_type. is_strict( ) || self . directives. iter( ) . any( Directive :: is_use_strict) ) ,
29
29
) ]
30
30
#[ derive( Debug ) ]
31
31
#[ cfg_attr( feature = "serialize" , derive( Serialize , Tsify ) ) ]
@@ -1101,7 +1101,7 @@ pub struct WhileStatement<'a> {
1101
1101
/// For Statement
1102
1102
#[ visited_node(
1103
1103
scope( ScopeFlags :: empty( ) ) ,
1104
- scope_if( self . init. as_ref( ) . is_some_and( ForStatementInit :: is_lexical_declaration) )
1104
+ scope_if( self . init. as_ref( ) . is_some_and( ForStatementInit :: is_lexical_declaration) ) ,
1105
1105
) ]
1106
1106
#[ derive( Debug ) ]
1107
1107
#[ cfg_attr( feature = "serialize" , derive( Serialize , Tsify ) ) ]
@@ -1426,7 +1426,7 @@ pub struct BindingRestElement<'a> {
1426
1426
#[ visited_node(
1427
1427
// TODO: `ScopeFlags::Function` is not correct if this is a `MethodDefinition`
1428
1428
scope( ScopeFlags :: Function ) ,
1429
- strict_if( self . body. as_ref( ) . is_some_and( |body| body. has_use_strict_directive( ) ) )
1429
+ strict_if( self . body. as_ref( ) . is_some_and( |body| body. has_use_strict_directive( ) ) ) ,
1430
1430
) ]
1431
1431
#[ derive( Debug ) ]
1432
1432
#[ cfg_attr( feature = "serialize" , derive( Serialize , Tsify ) ) ]
@@ -1533,7 +1533,7 @@ pub struct FunctionBody<'a> {
1533
1533
/// Arrow Function Definitions
1534
1534
#[ visited_node(
1535
1535
scope( ScopeFlags :: Function | ScopeFlags :: Arrow ) ,
1536
- strict_if( self . body. has_use_strict_directive( ) )
1536
+ strict_if( self . body. has_use_strict_directive( ) ) ,
1537
1537
) ]
1538
1538
#[ derive( Debug ) ]
1539
1539
#[ cfg_attr( feature = "serialize" , derive( Serialize , Tsify ) ) ]
0 commit comments