Skip to content

Commit 57795d6

Browse files
committed
snapshot
1 parent a323595 commit 57795d6

File tree

2 files changed

+0
-60
lines changed

2 files changed

+0
-60
lines changed

lib/4.02.3/unstable/js_compiler.ml

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -92399,36 +92399,6 @@ and do_compile_matching repr partial ctx arg pmh = match pmh with
9239992399
Some {consts = consts |> List.rev |> Array.of_list;
9240092400
blocks = blocks |> List.rev |> Array.of_list } in
9240192401

92402-
92403-
(* let names = match (Btype.repr pat.pat_type).desc with
92404-
| Tconstr (path, _, _) ->
92405-
let names = match (Env.find_type path pat.pat_env).type_kind with
92406-
| Type_variant cstrs ->
92407-
names_from_type_variant cstrs
92408-
| Type_abstract ->
92409-
(match (Env.find_type path pat.pat_env).type_manifest with
92410-
| None -> Some {consts=[||]; blocks=[||]}
92411-
| Some t ->
92412-
match (Ctype.unalias t).desc with
92413-
| Tconstr (path1, _, _) ->
92414-
(* Format.eprintf "XXX path:%s@." (Path.name path);
92415-
Format.eprintf "XXX path1:%s@." (Path.name path1); *)
92416-
let names = match (Env.find_type path1 pat.pat_env).type_kind with
92417-
| Type_variant cstrs1 ->
92418-
names_from_type_variant cstrs1
92419-
| _ -> Some {consts=[||]; blocks=[||]} in
92420-
names
92421-
| _ -> Some {consts=[||]; blocks=[||]})
92422-
| Type_record _ ->
92423-
(* Format.eprintf "XXX Type_record@."; *)
92424-
Some {consts=[||]; blocks=[||]}
92425-
| Type_open ->
92426-
(* Format.eprintf "XXX Type_open@."; *)
92427-
Some {consts=[||]; blocks=[||]} in
92428-
names
92429-
| _ -> assert false in *)
92430-
92431-
9243292402
let names = match (Btype.repr pat.pat_type).desc with
9243392403
| Tconstr (path, _, _) ->
9243492404
let names = match Env.find_type path pat.pat_env with

lib/4.02.3/whole_compiler.ml

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -79919,36 +79919,6 @@ and do_compile_matching repr partial ctx arg pmh = match pmh with
7991979919
Some {consts = consts |> List.rev |> Array.of_list;
7992079920
blocks = blocks |> List.rev |> Array.of_list } in
7992179921

79922-
79923-
(* let names = match (Btype.repr pat.pat_type).desc with
79924-
| Tconstr (path, _, _) ->
79925-
let names = match (Env.find_type path pat.pat_env).type_kind with
79926-
| Type_variant cstrs ->
79927-
names_from_type_variant cstrs
79928-
| Type_abstract ->
79929-
(match (Env.find_type path pat.pat_env).type_manifest with
79930-
| None -> Some {consts=[||]; blocks=[||]}
79931-
| Some t ->
79932-
match (Ctype.unalias t).desc with
79933-
| Tconstr (path1, _, _) ->
79934-
(* Format.eprintf "XXX path:%s@." (Path.name path);
79935-
Format.eprintf "XXX path1:%s@." (Path.name path1); *)
79936-
let names = match (Env.find_type path1 pat.pat_env).type_kind with
79937-
| Type_variant cstrs1 ->
79938-
names_from_type_variant cstrs1
79939-
| _ -> Some {consts=[||]; blocks=[||]} in
79940-
names
79941-
| _ -> Some {consts=[||]; blocks=[||]})
79942-
| Type_record _ ->
79943-
(* Format.eprintf "XXX Type_record@."; *)
79944-
Some {consts=[||]; blocks=[||]}
79945-
| Type_open ->
79946-
(* Format.eprintf "XXX Type_open@."; *)
79947-
Some {consts=[||]; blocks=[||]} in
79948-
names
79949-
| _ -> assert false in *)
79950-
79951-
7995279922
let names = match (Btype.repr pat.pat_type).desc with
7995379923
| Tconstr (path, _, _) ->
7995479924
let names = match Env.find_type path pat.pat_env with

0 commit comments

Comments
 (0)