We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c496cc7 commit e1c79dfCopy full SHA for e1c79df
jscomp/core/lam_print.ml
@@ -383,12 +383,12 @@ let lambda ppf v =
383
List.iter
384
(fun (n, l) ->
385
if !spc then fprintf ppf "@ " else spc := true;
386
- fprintf ppf "@[<hv 1>case int %i:@ %a@]" n lam l)
+ fprintf ppf "@[<hv 1>case int %i %S:@ %a@]" n (match sw.sw_names with None -> "" | Some x -> x.consts.(n)) lam l)
387
sw.sw_consts;
388
389
390
391
- fprintf ppf "@[<hv 1>case tag %i:@ %a@]" n lam l)
+ fprintf ppf "@[<hv 1>case tag %i %S:@ %a@]" n (match sw.sw_names with None -> "" | Some x -> x.blocks.(n)) lam l)
392
sw.sw_blocks ;
393
begin match sw.sw_failaction with
394
| None -> ()
0 commit comments