Skip to content

Commit 870b79a

Browse files
cristianocamiralies
authored andcommitted
Generated files after rebasing on master.
1 parent 0bc3427 commit 870b79a

File tree

4 files changed

+19
-8
lines changed

4 files changed

+19
-8
lines changed

jscomp/core/bs_conditional_initial.ml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ let setup_env () =
3434
Ctype.variant_is_subtype := Matching_polyfill.variant_is_subtype;
3535
Clflags.dump_location := false;
3636
Config.syntax_kind := `rescript;
37-
Parmatch.print_res_pat := Pattern_printer.print_pattern;
3837

3938
# 38 "core/bs_conditional_initial.pp.ml"
4039
Clflags.color := Some Always;
@@ -74,4 +73,4 @@ let setup_env () =
7473

7574

7675
let () =
77-
at_exit (fun _ -> Format.pp_print_flush Format.err_formatter ())
76+
at_exit (fun _ -> Format.pp_print_flush Format.err_formatter ())

lib/4.06.1/unstable/js_compiler.ml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26327,6 +26327,8 @@ val pretty_pat : pattern -> unit
2632726327
val pretty_line : pattern list -> unit
2632826328
val pretty_matrix : pattern list list -> unit
2632926329

26330+
val print_res_pat: (Typedtree.pattern -> string) ref
26331+
2633026332
val omega : pattern
2633126333
val omegas : int -> pattern list
2633226334
val omega_list : 'a list -> pattern list
@@ -26773,6 +26775,9 @@ let get_type_path ty tenv =
2677326775
(* Values as patterns pretty printer *)
2677426776
(*************************************)
2677526777

26778+
let print_res_pat: (Typedtree.pattern -> string) ref =
26779+
ref (fun _ -> assert false)
26780+
2677626781
open Format
2677726782
;;
2677826783

@@ -28496,8 +28501,7 @@ let do_check_partial ?pred exhaust loc casel pss = match pss with
2849628501
let errmsg =
2849728502
try
2849828503
let buf = Buffer.create 16 in
28499-
let fmt = formatter_of_buffer buf in
28500-
top_pretty fmt v;
28504+
Buffer.add_string buf (!print_res_pat v);
2850128505
begin match check_partial_all v casel with
2850228506
| None -> ()
2850328507
| Some _ ->

lib/4.06.1/unstable/js_playground_compiler.ml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26327,6 +26327,8 @@ val pretty_pat : pattern -> unit
2632726327
val pretty_line : pattern list -> unit
2632826328
val pretty_matrix : pattern list list -> unit
2632926329

26330+
val print_res_pat: (Typedtree.pattern -> string) ref
26331+
2633026332
val omega : pattern
2633126333
val omegas : int -> pattern list
2633226334
val omega_list : 'a list -> pattern list
@@ -26773,6 +26775,9 @@ let get_type_path ty tenv =
2677326775
(* Values as patterns pretty printer *)
2677426776
(*************************************)
2677526777

26778+
let print_res_pat: (Typedtree.pattern -> string) ref =
26779+
ref (fun _ -> assert false)
26780+
2677626781
open Format
2677726782
;;
2677826783

@@ -28496,8 +28501,7 @@ let do_check_partial ?pred exhaust loc casel pss = match pss with
2849628501
let errmsg =
2849728502
try
2849828503
let buf = Buffer.create 16 in
28499-
let fmt = formatter_of_buffer buf in
28500-
top_pretty fmt v;
28504+
Buffer.add_string buf (!print_res_pat v);
2850128505
begin match check_partial_all v casel with
2850228506
| None -> ()
2850328507
| Some _ ->

lib/4.06.1/whole_compiler.ml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186268,6 +186268,8 @@ val pretty_pat : pattern -> unit
186268186268
val pretty_line : pattern list -> unit
186269186269
val pretty_matrix : pattern list list -> unit
186270186270

186271+
val print_res_pat: (Typedtree.pattern -> string) ref
186272+
186271186273
val omega : pattern
186272186274
val omegas : int -> pattern list
186273186275
val omega_list : 'a list -> pattern list
@@ -186714,6 +186716,9 @@ let get_type_path ty tenv =
186714186716
(* Values as patterns pretty printer *)
186715186717
(*************************************)
186716186718

186719+
let print_res_pat: (Typedtree.pattern -> string) ref =
186720+
ref (fun _ -> assert false)
186721+
186717186722
open Format
186718186723
;;
186719186724

@@ -188437,8 +188442,7 @@ let do_check_partial ?pred exhaust loc casel pss = match pss with
188437188442
let errmsg =
188438188443
try
188439188444
let buf = Buffer.create 16 in
188440-
let fmt = formatter_of_buffer buf in
188441-
top_pretty fmt v;
188445+
Buffer.add_string buf (!print_res_pat v);
188442188446
begin match check_partial_all v casel with
188443188447
| None -> ()
188444188448
| Some _ ->

0 commit comments

Comments
 (0)