53
53
54
54
module P = Ext_pp
55
55
module E = Js_exp_make
56
- module S = Js_stmt_make
56
+ (* module S = Js_stmt_make *)
57
57
58
58
module L = Js_dump_lit
59
59
@@ -226,12 +226,12 @@ let pp_paren_params
226
226
227
227
(* * Print as underscore for unused vars, may not be
228
228
needed in the future *)
229
- let ipp_ident cxt f id (un_used : bool ) =
229
+ (* let ipp_ident cxt f id (un_used : bool) =
230
230
Ext_pp_scope.ident cxt f (
231
231
if un_used then
232
232
Ext_ident.make_unused ()
233
233
else
234
- id)
234
+ id) *)
235
235
236
236
let pp_var_assign cxt f id =
237
237
P. string f L. var ;
@@ -279,9 +279,10 @@ let comma_sp f =
279
279
let comma_nl f =
280
280
comma f ; P. newline f
281
281
282
- let drop_comment (x : J.expression ) =
282
+ (* let drop_comment (x : J.expression) =
283
283
if x.comment = None then x
284
- else {x with comment = None }
284
+ else {x with comment = None} *)
285
+
285
286
let debugger_nl f =
286
287
P. newline f ;
287
288
P. string f L. debugger;
@@ -300,7 +301,8 @@ let continue f s =
300
301
P. string f s;
301
302
semi f
302
303
303
- let formal_parameter_list cxt f offset l env =
304
+
305
+ let formal_parameter_list cxt f l =
304
306
iter_lst cxt f l Ext_pp_scope. ident comma_sp
305
307
(* IdentMap *)
306
308
(*
@@ -406,7 +408,7 @@ and pp_function is_method
406
408
| [] -> assert false
407
409
| this ::arguments ->
408
410
let cxt = P. paren_group f 1 (fun _ ->
409
- formal_parameter_list inner_cxt f 1 arguments env )
411
+ formal_parameter_list inner_cxt f arguments )
410
412
in
411
413
P. space f ;
412
414
P. brace_vgroup f 1 (fun _ ->
@@ -417,7 +419,7 @@ and pp_function is_method
417
419
);
418
420
else
419
421
let cxt =
420
- P. paren_group f 1 (fun _ -> formal_parameter_list inner_cxt f 0 l env ) in
422
+ P. paren_group f 1 (fun _ -> formal_parameter_list inner_cxt f l ) in
421
423
P. space f ;
422
424
P. brace_vgroup f 1 (fun _ -> function_body cxt f b )
423
425
in
@@ -1014,7 +1016,7 @@ and variable_declaration top cxt f
1014
1016
cxt
1015
1017
1016
1018
1017
- and ipp_comment : 'a . P.t -> 'a -> unit = fun f comment ->
1019
+ and ipp_comment : 'a . P.t -> 'a -> unit = fun _f _comment ->
1018
1020
()
1019
1021
1020
1022
0 commit comments