@@ -294,7 +294,7 @@ fn collect_insertions(node: &SyntaxNode, nesting_depth: u32) -> InsertionList {
294
294
Some ( name) => {
295
295
insertions. push_back ( Insertion :: new ( name. text_range ( ) . end ( ) , "__" ) ) ;
296
296
insertions. push_back ( Insertion :: new_dynamic ( range. end ( ) ,
297
- [ ";\n _cr = " , name. text ( ) , " = " , name. text ( ) , "__" ] . concat ( )
297
+ [ ";\n _cr = " , name. text ( ) , " = " , name. text ( ) , "__; \n " ] . concat ( )
298
298
) ) ;
299
299
insertions. add_variable ( name. to_string ( ) ) ;
300
300
}
@@ -372,7 +372,7 @@ fn collect_insertions(node: &SyntaxNode, nesting_depth: u32) -> InsertionList {
372
372
}
373
373
insertions. append ( child_insertions) ;
374
374
if let Some ( end) = expr_range. map ( |r| r. end ( ) ) {
375
- insertions. push_back ( Insertion :: new ( end, ")" ) ) ;
375
+ insertions. push_back ( Insertion :: new ( end, "); " ) ) ;
376
376
}
377
377
continue ;
378
378
}
@@ -473,7 +473,7 @@ fn collect_insertions(node: &SyntaxNode, nesting_depth: u32) -> InsertionList {
473
473
if is_returned_expression && !is_expr_in_async_function {
474
474
insertions. push_back ( Insertion :: new (
475
475
range. end ( ) ,
476
- "), _functionState === 'async' ? _synchronousReturnValue : null)"
476
+ "), _functionState === 'async' ? _synchronousReturnValue : null); "
477
477
) ) ;
478
478
}
479
479
}
0 commit comments