File tree Expand file tree Collapse file tree 6 files changed +24
-16
lines changed Expand file tree Collapse file tree 6 files changed +24
-16
lines changed Original file line number Diff line number Diff line change @@ -10955,9 +10955,13 @@ let clean_re_js root =
10955
10955
| None -> Set_string.empty
10956
10956
in
10957
10957
let gentype_language =
10958
- match Map_string.find_opt map Bsb_build_schemas.language with
10958
+ match Map_string.find_opt map Bsb_build_schemas.gentypeconfig with
10959
10959
| None -> ""
10960
- | Some (Str {str}) -> str
10960
+ | Some (Obj { map }) ->
10961
+ (match Map_string.find_opt map Bsb_build_schemas.language with
10962
+ | None -> ""
10963
+ | Some (Str {str}) -> str
10964
+ | Some _ -> "")
10961
10965
| Some _ -> ""
10962
10966
in
10963
10967
Ext_option.iter (Map_string.find_opt map Bsb_build_schemas.sources) begin fun config ->
Original file line number Diff line number Diff line change @@ -10987,9 +10987,13 @@ let clean_re_js root =
10987
10987
| None -> Set_string.empty
10988
10988
in
10989
10989
let gentype_language =
10990
- match Map_string.find_opt map Bsb_build_schemas.language with
10990
+ match Map_string.find_opt map Bsb_build_schemas.gentypeconfig with
10991
10991
| None -> ""
10992
- | Some (Str {str}) -> str
10992
+ | Some (Obj { map }) ->
10993
+ (match Map_string.find_opt map Bsb_build_schemas.language with
10994
+ | None -> ""
10995
+ | Some (Str {str}) -> str
10996
+ | Some _ -> "")
10993
10997
| Some _ -> ""
10994
10998
in
10995
10999
Ext_option.iter (Map_string.find_opt map Bsb_build_schemas.sources) begin fun config ->
Original file line number Diff line number Diff line change @@ -407641,7 +407641,7 @@ let check_and_discard (args : Ast_compatible.args) =
407641
407641
407642
407642
type app_pattern = {
407643
407643
op : string;
407644
- loc : Location.t;
407644
+ loc : Location.t; (* locatoin is the location of whole expression #4451 *)
407645
407645
args : Parsetree.expression list
407646
407646
}
407647
407647
@@ -407652,10 +407652,10 @@ let sane_property_name_check loc s =
407652
407652
(* match fn as *)
407653
407653
let view_as_app (fn : exp) s : app_pattern option =
407654
407654
match fn.pexp_desc with
407655
- | Pexp_apply ({pexp_desc = Pexp_ident {txt = Lident op; loc }}, args )
407655
+ | Pexp_apply ({pexp_desc = Pexp_ident {txt = Lident op; _ }}, args )
407656
407656
when Ext_list.has_string s op
407657
407657
->
407658
- Some {op; loc; args = check_and_discard args}
407658
+ Some {op; loc = fn.pexp_loc ; args = check_and_discard args}
407659
407659
| _ -> None
407660
407660
407661
407661
Original file line number Diff line number Diff line change @@ -407641,7 +407641,7 @@ let check_and_discard (args : Ast_compatible.args) =
407641
407641
407642
407642
type app_pattern = {
407643
407643
op : string;
407644
- loc : Location.t;
407644
+ loc : Location.t; (* locatoin is the location of whole expression #4451 *)
407645
407645
args : Parsetree.expression list
407646
407646
}
407647
407647
@@ -407652,10 +407652,10 @@ let sane_property_name_check loc s =
407652
407652
(* match fn as *)
407653
407653
let view_as_app (fn : exp) s : app_pattern option =
407654
407654
match fn.pexp_desc with
407655
- | Pexp_apply ({pexp_desc = Pexp_ident {txt = Lident op; loc }}, args )
407655
+ | Pexp_apply ({pexp_desc = Pexp_ident {txt = Lident op; _ }}, args )
407656
407656
when Ext_list.has_string s op
407657
407657
->
407658
- Some {op; loc; args = check_and_discard args}
407658
+ Some {op; loc = fn.pexp_loc ; args = check_and_discard args}
407659
407659
| _ -> None
407660
407660
407661
407661
Original file line number Diff line number Diff line change @@ -22153,7 +22153,7 @@ let check_and_discard (args : Ast_compatible.args) =
22153
22153
22154
22154
type app_pattern = {
22155
22155
op : string;
22156
- loc : Location.t;
22156
+ loc : Location.t; (* locatoin is the location of whole expression #4451 *)
22157
22157
args : Parsetree.expression list
22158
22158
}
22159
22159
@@ -22164,10 +22164,10 @@ let sane_property_name_check loc s =
22164
22164
(* match fn as *)
22165
22165
let view_as_app (fn : exp) s : app_pattern option =
22166
22166
match fn.pexp_desc with
22167
- | Pexp_apply ({pexp_desc = Pexp_ident {txt = Lident op; loc }}, args )
22167
+ | Pexp_apply ({pexp_desc = Pexp_ident {txt = Lident op; _ }}, args )
22168
22168
when Ext_list.has_string s op
22169
22169
->
22170
- Some {op; loc; args = check_and_discard args}
22170
+ Some {op; loc = fn.pexp_loc ; args = check_and_discard args}
22171
22171
| _ -> None
22172
22172
22173
22173
Original file line number Diff line number Diff line change @@ -411380,7 +411380,7 @@ let check_and_discard (args : Ast_compatible.args) =
411380
411380
411381
411381
type app_pattern = {
411382
411382
op : string;
411383
- loc : Location.t;
411383
+ loc : Location.t; (* locatoin is the location of whole expression #4451 *)
411384
411384
args : Parsetree.expression list
411385
411385
}
411386
411386
@@ -411391,10 +411391,10 @@ let sane_property_name_check loc s =
411391
411391
(* match fn as *)
411392
411392
let view_as_app (fn : exp) s : app_pattern option =
411393
411393
match fn.pexp_desc with
411394
- | Pexp_apply ({pexp_desc = Pexp_ident {txt = Lident op; loc }}, args )
411394
+ | Pexp_apply ({pexp_desc = Pexp_ident {txt = Lident op; _ }}, args )
411395
411395
when Ext_list.has_string s op
411396
411396
->
411397
- Some {op; loc; args = check_and_discard args}
411397
+ Some {op; loc = fn.pexp_loc ; args = check_and_discard args}
411398
411398
| _ -> None
411399
411399
411400
411400
You can’t perform that action at this time.
0 commit comments