@@ -3542,7 +3542,7 @@ type info =
35423542 | Impl
35433543 | Impl_intf
35443544
3545- type syntax_kind = Ml | Reason | Res
3545+ type syntax_kind = Ml | Res
35463546
35473547type module_info = {
35483548 mutable info : info ;
@@ -3606,7 +3606,7 @@ type info =
36063606 | Impl
36073607 | Impl_intf
36083608
3609- type syntax_kind = Ml | Reason | Res
3609+ type syntax_kind = Ml | Res
36103610
36113611type module_info = {
36123612 mutable info : info ;
@@ -5567,10 +5567,6 @@ let suffix_ml = ".ml"
55675567
55685568let suffix_mli = " .mli"
55695569
5570- let suffix_re = " .re"
5571-
5572- let suffix_rei = " .rei"
5573-
55745570let suffix_res = " .res"
55755571
55765572let suffix_resi = " .resi"
@@ -9668,14 +9664,10 @@ let add_basename ~(dir : string) (map : t) ?error_on_invalid_suffix basename : t
96689664 (match () with
96699665 | _ when file_suffix = Literals. suffix_ml -> ()
96709666 | _ when file_suffix = Literals. suffix_res -> syntax_kind := Res
9671- | _ when file_suffix = Literals. suffix_re -> syntax_kind := Reason
96729667 | _ when file_suffix = Literals. suffix_mli -> info := Intf
96739668 | _ when file_suffix = Literals. suffix_resi ->
96749669 info := Intf ;
96759670 syntax_kind := Res
9676- | _ when file_suffix = Literals. suffix_rei ->
9677- info := Intf ;
9678- syntax_kind := Reason
96799671 | _ -> invalid_suffix := true );
96809672 let info = ! info in
96819673 let syntax_kind = ! syntax_kind in
@@ -12088,8 +12080,6 @@ let handle_generators oc (group : Bsb_file_groups.file_group) custom_rules =
1208812080
1208912081type suffixes = { impl : string ; intf : string }
1209012082
12091- let re_suffixes = { impl = Literals. suffix_re; intf = Literals. suffix_rei }
12092-
1209312083let ml_suffixes = { impl = Literals. suffix_ml; intf = Literals. suffix_mli }
1209412084
1209512085let res_suffixes = { impl = Literals. suffix_res; intf = Literals. suffix_resi }
@@ -12100,7 +12090,6 @@ let emit_module_build (rules : Bsb_ninja_rule.builtin)
1210012090 let has_intf_file = module_info.info = Impl_intf in
1210112091 let config, ast_rule =
1210212092 match module_info.syntax_kind with
12103- | Reason -> (re_suffixes, rules.build_ast_from_re)
1210412093 | Ml -> (ml_suffixes, rules.build_ast)
1210512094 | Res -> (res_suffixes, rules.build_ast_from_re)
1210612095 (* FIXME: better names *)
@@ -12330,7 +12319,6 @@ let output_installation_file cwd_lib_bs namespace files_to_install =
1233012319 let suffix =
1233112320 match syntax_kind with
1233212321 | Ml -> Literals. suffix_ml
12333- | Reason -> Literals. suffix_re
1233412322 | Res -> Literals. suffix_res
1233512323 in
1233612324 oo suffix ~dest: base ~src: (sb // name_sans_extension);
@@ -12341,7 +12329,6 @@ let output_installation_file cwd_lib_bs namespace files_to_install =
1234112329 let suffix_b =
1234212330 match syntax_kind with
1234312331 | Ml -> Literals. suffix_mli
12344- | Reason -> Literals. suffix_rei
1234512332 | Res -> Literals. suffix_resi
1234612333 in
1234712334 oo suffix_b ~dest: base ~src: (sb // name_sans_extension);
@@ -13246,8 +13233,6 @@ let info_subcommand ~start argv =
1324613233 let extensions =
1324713234 match (syntax_kind, info) with
1324813235 | _ , Intf -> assert false
13249- | Reason , Impl -> [ " .re" ]
13250- | Reason , Impl_intf -> [ " .re" ; " .rei" ]
1325113236 | Ml , Impl -> [ " .ml" ]
1325213237 | Ml , Impl_intf -> [ " .ml" ; " .mli" ]
1325313238 | Res , Impl -> [ " .res" ]
0 commit comments