@@ -362,7 +362,7 @@ and pp_function ~return_unit ~async ~is_method cxt (f : P.t) ~fn_state
362
362
if the function does not capture any variable, then the context is empty
363
363
*)
364
364
let inner_cxt = Ext_pp_scope. sub_scope outer_cxt set_env in
365
- let param_body b : unit =
365
+ let param_body () : unit =
366
366
if is_method then (
367
367
match l with
368
368
| [] -> assert false
@@ -394,24 +394,24 @@ and pp_function ~return_unit ~async ~is_method cxt (f : P.t) ~fn_state
394
394
return_sp f;
395
395
P. string f (L. function_async ~async );
396
396
P. space f;
397
- param_body b
397
+ param_body ()
398
398
| No_name { single_arg } ->
399
399
(* see # 1692, add a paren for annoymous function for safety *)
400
400
P. cond_paren_group f (not single_arg) 1 (fun _ ->
401
401
P. string f (L. function_async ~async );
402
402
P. space f;
403
- param_body b )
403
+ param_body () )
404
404
| Name_non_top x ->
405
405
ignore (pp_var_assign inner_cxt f x : cxt );
406
406
P. string f (L. function_async ~async );
407
407
P. space f;
408
- param_body b ;
408
+ param_body () ;
409
409
semi f
410
410
| Name_top x ->
411
411
P. string f (L. function_async ~async );
412
412
P. space f;
413
413
ignore (Ext_pp_scope. ident inner_cxt f x : cxt );
414
- param_body b )
414
+ param_body () )
415
415
else
416
416
(* print our closure as
417
417
{[(function(x,y){ return function(..){...}} (x,y))]}
@@ -434,7 +434,7 @@ and pp_function ~return_unit ~async ~is_method cxt (f : P.t) ~fn_state
434
434
| Is_return | No_name _ -> ()
435
435
| Name_non_top x | Name_top x ->
436
436
ignore (Ext_pp_scope. ident inner_cxt f x));
437
- param_body b );
437
+ param_body () );
438
438
pp_paren_params inner_cxt f lexical;
439
439
P. string f L. rparen;
440
440
match fn_state with
0 commit comments