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 =
344344let expand_reverse (stru : Ast_structure.t ) (acc : Ast_structure.t ) : Ast_structure.t =
345345 if stru = [] then acc
346346 else begin
347- Ext_list. iter stru Typemod_hide. check;
347+ Typemod_hide. check stru ;
348348 let local_module_name = local_module_name () in
349349 let last_loc = (List. hd stru).pstr_loc in
350350 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) =
3333let attrs : Parsetree.attributes =
3434 [{txt = " internal.local" ;loc = Location. none}, PStr []]
3535
36- let check (x : Parsetree.structure_item ) =
36+ let check (x : Parsetree.structure ) =
37+ Ext_list. iter x (fun x ->
3738 match x.pstr_desc with
3839 | Pstr_eval _
3940 | Pstr_value _
4041 | Pstr_primitive _
4142 | Pstr_typext _
4243 | Pstr_exception _
44+ (* | Pstr_module {pmb_expr = {pmod_desc = Pmod_ident _} } *)
4345 -> ()
46+
4447 | _ ->
4548 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 4949
5050;; Js. log (h 1 2 [@ bs])
5151
52+ (* module%private X = Arg
53+ type x = X.spec *)
5254(* [%%debugger.chrome] *)
Original file line number Diff line number Diff line change @@ -315028,17 +315028,20 @@ let should_hide ( x : Typedtree.module_binding) =
315028315028let attrs : Parsetree.attributes =
315029315029 [{txt = "internal.local";loc = Location.none}, PStr []]
315030315030
315031- let check (x : Parsetree.structure_item) =
315031+ let check (x : Parsetree.structure) =
315032+ Ext_list.iter x (fun x ->
315032315033 match x.pstr_desc with
315033315034 | Pstr_eval _
315034315035 | Pstr_value _
315035315036 | Pstr_primitive _
315036315037 | Pstr_typext _
315037315038 | Pstr_exception _
315039+ (* | Pstr_module {pmb_expr = {pmod_desc = Pmod_ident _} } *)
315038315040 -> ()
315041+
315039315042 | _ ->
315040315043 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")
315042315045end
315043315046module Bs_builtin_ppx : sig
315044315047(* Copyright (C) 2015-2016 Bloomberg Finance L.P.
@@ -315460,7 +315463,7 @@ let local_module_name =
315460315463let expand_reverse (stru : Ast_structure.t) (acc : Ast_structure.t) : Ast_structure.t =
315461315464 if stru = [] then acc
315462315465 else begin
315463- Ext_list.iter stru Typemod_hide.check;
315466+ Typemod_hide.check stru ;
315464315467 let local_module_name = local_module_name () in
315465315468 let last_loc = (List.hd stru).pstr_loc in
315466315469 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) =
315028315028let attrs : Parsetree.attributes =
315029315029 [{txt = "internal.local";loc = Location.none}, PStr []]
315030315030
315031- let check (x : Parsetree.structure_item) =
315031+ let check (x : Parsetree.structure) =
315032+ Ext_list.iter x (fun x ->
315032315033 match x.pstr_desc with
315033315034 | Pstr_eval _
315034315035 | Pstr_value _
315035315036 | Pstr_primitive _
315036315037 | Pstr_typext _
315037315038 | Pstr_exception _
315039+ (* | Pstr_module {pmb_expr = {pmod_desc = Pmod_ident _} } *)
315038315040 -> ()
315041+
315039315042 | _ ->
315040315043 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")
315042315045end
315043315046module Bs_builtin_ppx : sig
315044315047(* Copyright (C) 2015-2016 Bloomberg Finance L.P.
@@ -315460,7 +315463,7 @@ let local_module_name =
315460315463let expand_reverse (stru : Ast_structure.t) (acc : Ast_structure.t) : Ast_structure.t =
315461315464 if stru = [] then acc
315462315465 else begin
315463- Ext_list.iter stru Typemod_hide.check;
315466+ Typemod_hide.check stru ;
315464315467 let local_module_name = local_module_name () in
315465315468 let last_loc = (List.hd stru).pstr_loc in
315466315469 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) =
361324361324let attrs : Parsetree.attributes =
361325361325 [{txt = "internal.local";loc = Location.none}, PStr []]
361326361326
361327- let check (x : Parsetree.structure_item) =
361327+ let check (x : Parsetree.structure) =
361328+ Ext_list.iter x (fun x ->
361328361329 match x.pstr_desc with
361329361330 | Pstr_eval _
361330361331 | Pstr_value _
361331361332 | Pstr_primitive _
361332361333 | Pstr_typext _
361333361334 | Pstr_exception _
361335+ (* | Pstr_module {pmb_expr = {pmod_desc = Pmod_ident _} } *)
361334361336 -> ()
361337+
361335361338 | _ ->
361336361339 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")
361338361341end
361339361342module Bs_conditional_initial : sig
361340361343(* Copyright (C) 2015-2016 Bloomberg Finance L.P.
@@ -412940,7 +412943,7 @@ let local_module_name =
412940412943let expand_reverse (stru : Ast_structure.t) (acc : Ast_structure.t) : Ast_structure.t =
412941412944 if stru = [] then acc
412942412945 else begin
412943- Ext_list.iter stru Typemod_hide.check;
412946+ Typemod_hide.check stru ;
412944412947 let local_module_name = local_module_name () in
412945412948 let last_loc = (List.hd stru).pstr_loc in
412946412949 let stru = List.rev stru in
You can’t perform that action at this time.
0 commit comments