@@ -3542,7 +3542,7 @@ type info =
3542
3542
| Impl
3543
3543
| Impl_intf
3544
3544
3545
- type syntax_kind = Ml | Reason | Res
3545
+ type syntax_kind = Ml | Res
3546
3546
3547
3547
type module_info = {
3548
3548
mutable info : info ;
@@ -3606,7 +3606,7 @@ type info =
3606
3606
| Impl
3607
3607
| Impl_intf
3608
3608
3609
- type syntax_kind = Ml | Reason | Res
3609
+ type syntax_kind = Ml | Res
3610
3610
3611
3611
type module_info = {
3612
3612
mutable info : info ;
@@ -5567,10 +5567,6 @@ let suffix_ml = ".ml"
5567
5567
5568
5568
let suffix_mli = " .mli"
5569
5569
5570
- let suffix_re = " .re"
5571
-
5572
- let suffix_rei = " .rei"
5573
-
5574
5570
let suffix_res = " .res"
5575
5571
5576
5572
let suffix_resi = " .resi"
@@ -9668,14 +9664,10 @@ let add_basename ~(dir : string) (map : t) ?error_on_invalid_suffix basename : t
9668
9664
(match () with
9669
9665
| _ when file_suffix = Literals. suffix_ml -> ()
9670
9666
| _ when file_suffix = Literals. suffix_res -> syntax_kind := Res
9671
- | _ when file_suffix = Literals. suffix_re -> syntax_kind := Reason
9672
9667
| _ when file_suffix = Literals. suffix_mli -> info := Intf
9673
9668
| _ when file_suffix = Literals. suffix_resi ->
9674
9669
info := Intf ;
9675
9670
syntax_kind := Res
9676
- | _ when file_suffix = Literals. suffix_rei ->
9677
- info := Intf ;
9678
- syntax_kind := Reason
9679
9671
| _ -> invalid_suffix := true );
9680
9672
let info = ! info in
9681
9673
let syntax_kind = ! syntax_kind in
@@ -12088,8 +12080,6 @@ let handle_generators oc (group : Bsb_file_groups.file_group) custom_rules =
12088
12080
12089
12081
type suffixes = { impl : string ; intf : string }
12090
12082
12091
- let re_suffixes = { impl = Literals. suffix_re; intf = Literals. suffix_rei }
12092
-
12093
12083
let ml_suffixes = { impl = Literals. suffix_ml; intf = Literals. suffix_mli }
12094
12084
12095
12085
let res_suffixes = { impl = Literals. suffix_res; intf = Literals. suffix_resi }
@@ -12100,7 +12090,6 @@ let emit_module_build (rules : Bsb_ninja_rule.builtin)
12100
12090
let has_intf_file = module_info.info = Impl_intf in
12101
12091
let config, ast_rule =
12102
12092
match module_info.syntax_kind with
12103
- | Reason -> (re_suffixes, rules.build_ast_from_re)
12104
12093
| Ml -> (ml_suffixes, rules.build_ast)
12105
12094
| Res -> (res_suffixes, rules.build_ast_from_re)
12106
12095
(* FIXME: better names *)
@@ -12330,7 +12319,6 @@ let output_installation_file cwd_lib_bs namespace files_to_install =
12330
12319
let suffix =
12331
12320
match syntax_kind with
12332
12321
| Ml -> Literals. suffix_ml
12333
- | Reason -> Literals. suffix_re
12334
12322
| Res -> Literals. suffix_res
12335
12323
in
12336
12324
oo suffix ~dest: base ~src: (sb // name_sans_extension);
@@ -12341,7 +12329,6 @@ let output_installation_file cwd_lib_bs namespace files_to_install =
12341
12329
let suffix_b =
12342
12330
match syntax_kind with
12343
12331
| Ml -> Literals. suffix_mli
12344
- | Reason -> Literals. suffix_rei
12345
12332
| Res -> Literals. suffix_resi
12346
12333
in
12347
12334
oo suffix_b ~dest: base ~src: (sb // name_sans_extension);
@@ -13246,8 +13233,6 @@ let info_subcommand ~start argv =
13246
13233
let extensions =
13247
13234
match (syntax_kind, info) with
13248
13235
| _ , Intf -> assert false
13249
- | Reason , Impl -> [ " .re" ]
13250
- | Reason , Impl_intf -> [ " .re" ; " .rei" ]
13251
13236
| Ml , Impl -> [ " .ml" ]
13252
13237
| Ml , Impl_intf -> [ " .ml" ; " .mli" ]
13253
13238
| Res , Impl -> [ " .res" ]
0 commit comments