Skip to content

Commit 6a3ed64

Browse files
panglesdjonludlam
authored andcommitted
Label boolean argument for loading functions
1 parent d51fbc0 commit 6a3ed64

File tree

8 files changed

+11
-11
lines changed

8 files changed

+11
-11
lines changed

src/loader/cmi.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1171,7 +1171,7 @@ and read_signature env parent (items : Odoc_model.Compat.signature) =
11711171
fst @@ read_signature_noenv env parent items
11721172

11731173

1174-
let read_interface root name suppress_warnings intf =
1174+
let read_interface root name ~suppress_warnings intf =
11751175
let id =
11761176
Identifier.Mk.root (root, Odoc_model.Names.ModuleName.make_std name)
11771177
in

src/loader/cmi.mli

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ type env = {
2727
val read_interface :
2828
Odoc_model.Paths.Identifier.ContainerPage.t option ->
2929
string ->
30-
bool ->
30+
suppress_warnings:bool ->
3131
Odoc_model.Compat.signature ->
3232
Paths.Identifier.RootModule.t * Odoc_model.Lang.Signature.t
3333

src/loader/cmt.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,7 @@ and read_structure :
616616
| _ ->
617617
({ Signature.items = Comment (`Docs doc_post) :: items; compiled=false; removed = []; doc }, tags)
618618

619-
let read_implementation root name suppress_warnings impl =
619+
let read_implementation root name ~suppress_warnings impl =
620620
let id =
621621
Identifier.Mk.root (root, Odoc_model.Names.ModuleName.make_std name)
622622
in

src/loader/cmt.mli

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
val read_implementation :
1818
Odoc_model.Paths.Identifier.ContainerPage.t option ->
1919
string ->
20-
bool ->
20+
suppress_warnings:bool ->
2121
Typedtree.structure ->
2222
Odoc_model.Paths.Identifier.RootModule.t
2323
* Odoc_model.Lang.Signature.t

src/loader/cmti.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -815,7 +815,7 @@ and read_signature :
815815
| _ ->
816816
({ Signature.items = Comment (`Docs doc_post) :: items; compiled=false; removed = []; doc }, tags)
817817

818-
let read_interface root name suppress_warnings intf =
818+
let read_interface root name ~suppress_warnings intf =
819819
let id =
820820
Identifier.Mk.root (root, Odoc_model.Names.ModuleName.make_std name)
821821
in

src/loader/cmti.mli

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ val read_module_expr :
2727
val read_interface :
2828
Odoc_model.Paths.Identifier.ContainerPage.t option ->
2929
string ->
30-
bool ->
30+
suppress_warnings:bool ->
3131
Typedtree.signature ->
3232
Paths.Identifier.RootModule.t
3333
* Odoc_model.Lang.Signature.t

src/loader/odoc_loader.ml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ let read_cmti ~make_root ~parent ~filename ~suppress_warnings () =
119119
cmt_info.cmt_builddir )
120120
in
121121
let id, sg, canonical =
122-
Cmti.read_interface parent name suppress_warnings intf
122+
Cmti.read_interface parent name ~suppress_warnings intf
123123
in
124124
compilation_unit_of_sig ~make_root ~imports:cmt_info.cmt_imports
125125
~interface ~sourcefile ~name ~id ?canonical sg)
@@ -178,7 +178,7 @@ let read_cmt ~make_root ~parent ~filename ~suppress_warnings () =
178178
~id content
179179
| Implementation impl ->
180180
let id, sg, canonical =
181-
Cmt.read_implementation parent name suppress_warnings impl
181+
Cmt.read_implementation parent name ~suppress_warnings impl
182182
in
183183
compilation_unit_of_sig ~make_root ~imports ~interface ~sourcefile
184184
~name ~id ?canonical sg
@@ -189,7 +189,7 @@ let read_cmi ~make_root ~parent ~filename ~suppress_warnings () =
189189
match cmi_info.cmi_crcs with
190190
| (name, (Some _ as interface)) :: imports when name = cmi_info.cmi_name ->
191191
let id, sg =
192-
Cmi.read_interface parent name suppress_warnings
192+
Cmi.read_interface parent name ~suppress_warnings
193193
(Odoc_model.Compat.signature cmi_info.cmi_sign)
194194
in
195195
compilation_unit_of_sig ~make_root ~imports ~interface ~name ~id sg

test/xref2/lib/common.cppo.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,15 +70,15 @@ let root_pp fmt (_ : Odoc_model.Root.t) = Format.fprintf fmt "Common.root"
7070

7171
let model_of_string str =
7272
let cmti = cmti_of_string str in
73-
Odoc_loader__Cmti.read_interface (Some parent) "Root" false cmti
73+
Odoc_loader__Cmti.read_interface (Some parent) "Root" ~suppress_warnings:false cmti
7474

7575
let model_of_string_impl str =
7676
#if OCAML_VERSION < (4,13,0)
7777
let (cmt,_) = cmt_of_string str in
7878
#else
7979
let cmt = (cmt_of_string str).structure in
8080
#endif
81-
Odoc_loader__Cmt.read_implementation (Some parent) "Root" false cmt
81+
Odoc_loader__Cmt.read_implementation (Some parent) "Root" ~suppress_warnings:false cmt
8282

8383
let signature_of_mli_string str =
8484
Odoc_xref2.Ident.reset ();

0 commit comments

Comments
 (0)