File tree Expand file tree Collapse file tree 6 files changed +26
-12
lines changed Expand file tree Collapse file tree 6 files changed +26
-12
lines changed Original file line number Diff line number Diff line change @@ -344,7 +344,7 @@ let local_module_name =
344
344
let expand_reverse (stru : Ast_structure.t ) (acc : Ast_structure.t ) : Ast_structure.t =
345
345
if stru = [] then acc
346
346
else begin
347
- Ext_list. iter stru Typemod_hide. check;
347
+ Typemod_hide. check stru ;
348
348
let local_module_name = local_module_name () in
349
349
let last_loc = (List. hd stru).pstr_loc in
350
350
let stru = List. rev stru in
Original file line number Diff line number Diff line change @@ -33,14 +33,17 @@ let should_hide ( x : Typedtree.module_binding) =
33
33
let attrs : Parsetree.attributes =
34
34
[{txt = " internal.local" ;loc = Location. none}, PStr []]
35
35
36
- let check (x : Parsetree.structure_item ) =
36
+ let check (x : Parsetree.structure ) =
37
+ Ext_list. iter x (fun x ->
37
38
match x.pstr_desc with
38
39
| Pstr_eval _
39
40
| Pstr_value _
40
41
| Pstr_primitive _
41
42
| Pstr_typext _
42
43
| Pstr_exception _
44
+ (* | Pstr_module {pmb_expr = {pmod_desc = Pmod_ident _} } *)
43
45
-> ()
46
+
44
47
| _ ->
45
48
Location. raise_errorf ~loc: x.pstr_loc
46
- " the structure is not supported in local extension"
49
+ " the structure is not supported in local extension" )
Original file line number Diff line number Diff line change 49
49
50
50
;; Js. log (h 1 2 [@ bs])
51
51
52
+ (* module%private X = Arg
53
+ type x = X.spec *)
52
54
(* [%%debugger.chrome] *)
Original file line number Diff line number Diff line change @@ -315028,17 +315028,20 @@ let should_hide ( x : Typedtree.module_binding) =
315028
315028
let attrs : Parsetree.attributes =
315029
315029
[{txt = "internal.local";loc = Location.none}, PStr []]
315030
315030
315031
- let check (x : Parsetree.structure_item) =
315031
+ let check (x : Parsetree.structure) =
315032
+ Ext_list.iter x (fun x ->
315032
315033
match x.pstr_desc with
315033
315034
| Pstr_eval _
315034
315035
| Pstr_value _
315035
315036
| Pstr_primitive _
315036
315037
| Pstr_typext _
315037
315038
| Pstr_exception _
315039
+ (* | Pstr_module {pmb_expr = {pmod_desc = Pmod_ident _} } *)
315038
315040
-> ()
315041
+
315039
315042
| _ ->
315040
315043
Location.raise_errorf ~loc:x.pstr_loc
315041
- "the structure is not supported in local extension"
315044
+ "the structure is not supported in local extension")
315042
315045
end
315043
315046
module Bs_builtin_ppx : sig
315044
315047
(* Copyright (C) 2015-2016 Bloomberg Finance L.P.
@@ -315460,7 +315463,7 @@ let local_module_name =
315460
315463
let expand_reverse (stru : Ast_structure.t) (acc : Ast_structure.t) : Ast_structure.t =
315461
315464
if stru = [] then acc
315462
315465
else begin
315463
- Ext_list.iter stru Typemod_hide.check;
315466
+ Typemod_hide.check stru ;
315464
315467
let local_module_name = local_module_name () in
315465
315468
let last_loc = (List.hd stru).pstr_loc in
315466
315469
let stru = List.rev stru in
Original file line number Diff line number Diff line change @@ -315028,17 +315028,20 @@ let should_hide ( x : Typedtree.module_binding) =
315028
315028
let attrs : Parsetree.attributes =
315029
315029
[{txt = "internal.local";loc = Location.none}, PStr []]
315030
315030
315031
- let check (x : Parsetree.structure_item) =
315031
+ let check (x : Parsetree.structure) =
315032
+ Ext_list.iter x (fun x ->
315032
315033
match x.pstr_desc with
315033
315034
| Pstr_eval _
315034
315035
| Pstr_value _
315035
315036
| Pstr_primitive _
315036
315037
| Pstr_typext _
315037
315038
| Pstr_exception _
315039
+ (* | Pstr_module {pmb_expr = {pmod_desc = Pmod_ident _} } *)
315038
315040
-> ()
315041
+
315039
315042
| _ ->
315040
315043
Location.raise_errorf ~loc:x.pstr_loc
315041
- "the structure is not supported in local extension"
315044
+ "the structure is not supported in local extension")
315042
315045
end
315043
315046
module Bs_builtin_ppx : sig
315044
315047
(* Copyright (C) 2015-2016 Bloomberg Finance L.P.
@@ -315460,7 +315463,7 @@ let local_module_name =
315460
315463
let expand_reverse (stru : Ast_structure.t) (acc : Ast_structure.t) : Ast_structure.t =
315461
315464
if stru = [] then acc
315462
315465
else begin
315463
- Ext_list.iter stru Typemod_hide.check;
315466
+ Typemod_hide.check stru ;
315464
315467
let local_module_name = local_module_name () in
315465
315468
let last_loc = (List.hd stru).pstr_loc in
315466
315469
let stru = List.rev stru in
Original file line number Diff line number Diff line change @@ -361324,17 +361324,20 @@ let should_hide ( x : Typedtree.module_binding) =
361324
361324
let attrs : Parsetree.attributes =
361325
361325
[{txt = "internal.local";loc = Location.none}, PStr []]
361326
361326
361327
- let check (x : Parsetree.structure_item) =
361327
+ let check (x : Parsetree.structure) =
361328
+ Ext_list.iter x (fun x ->
361328
361329
match x.pstr_desc with
361329
361330
| Pstr_eval _
361330
361331
| Pstr_value _
361331
361332
| Pstr_primitive _
361332
361333
| Pstr_typext _
361333
361334
| Pstr_exception _
361335
+ (* | Pstr_module {pmb_expr = {pmod_desc = Pmod_ident _} } *)
361334
361336
-> ()
361337
+
361335
361338
| _ ->
361336
361339
Location.raise_errorf ~loc:x.pstr_loc
361337
- "the structure is not supported in local extension"
361340
+ "the structure is not supported in local extension")
361338
361341
end
361339
361342
module Bs_conditional_initial : sig
361340
361343
(* Copyright (C) 2015-2016 Bloomberg Finance L.P.
@@ -412940,7 +412943,7 @@ let local_module_name =
412940
412943
let expand_reverse (stru : Ast_structure.t) (acc : Ast_structure.t) : Ast_structure.t =
412941
412944
if stru = [] then acc
412942
412945
else begin
412943
- Ext_list.iter stru Typemod_hide.check;
412946
+ Typemod_hide.check stru ;
412944
412947
let local_module_name = local_module_name () in
412945
412948
let last_loc = (List.hd stru).pstr_loc in
412946
412949
let stru = List.rev stru in
You can’t perform that action at this time.
0 commit comments