File tree Expand file tree Collapse file tree 8 files changed +11
-11
lines changed Expand file tree Collapse file tree 8 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -1171,7 +1171,7 @@ and read_signature env parent (items : Odoc_model.Compat.signature) =
1171
1171
fst @@ read_signature_noenv env parent items
1172
1172
1173
1173
1174
- let read_interface root name suppress_warnings intf =
1174
+ let read_interface root name ~ suppress_warnings intf =
1175
1175
let id =
1176
1176
Identifier.Mk. root (root, Odoc_model.Names.ModuleName. make_std name)
1177
1177
in
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ type env = {
27
27
val read_interface :
28
28
Odoc_model.Paths.Identifier.ContainerPage .t option ->
29
29
string ->
30
- bool ->
30
+ suppress_warnings : bool ->
31
31
Odoc_model.Compat .signature ->
32
32
Paths.Identifier.RootModule .t * Odoc_model.Lang.Signature .t
33
33
Original file line number Diff line number Diff line change @@ -616,7 +616,7 @@ and read_structure :
616
616
| _ ->
617
617
({ Signature. items = Comment (`Docs doc_post) :: items; compiled= false ; removed = [] ; doc }, tags)
618
618
619
- let read_implementation root name suppress_warnings impl =
619
+ let read_implementation root name ~ suppress_warnings impl =
620
620
let id =
621
621
Identifier.Mk. root (root, Odoc_model.Names.ModuleName. make_std name)
622
622
in
Original file line number Diff line number Diff line change 17
17
val read_implementation :
18
18
Odoc_model.Paths.Identifier.ContainerPage .t option ->
19
19
string ->
20
- bool ->
20
+ suppress_warnings : bool ->
21
21
Typedtree .structure ->
22
22
Odoc_model.Paths.Identifier.RootModule .t
23
23
* Odoc_model.Lang.Signature .t
Original file line number Diff line number Diff line change @@ -815,7 +815,7 @@ and read_signature :
815
815
| _ ->
816
816
({ Signature. items = Comment (`Docs doc_post) :: items; compiled= false ; removed = [] ; doc }, tags)
817
817
818
- let read_interface root name suppress_warnings intf =
818
+ let read_interface root name ~ suppress_warnings intf =
819
819
let id =
820
820
Identifier.Mk. root (root, Odoc_model.Names.ModuleName. make_std name)
821
821
in
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ val read_module_expr :
27
27
val read_interface :
28
28
Odoc_model.Paths.Identifier.ContainerPage .t option ->
29
29
string ->
30
- bool ->
30
+ suppress_warnings : bool ->
31
31
Typedtree .signature ->
32
32
Paths.Identifier.RootModule .t
33
33
* Odoc_model.Lang.Signature .t
Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ let read_cmti ~make_root ~parent ~filename ~suppress_warnings () =
119
119
cmt_info.cmt_builddir )
120
120
in
121
121
let id, sg, canonical =
122
- Cmti. read_interface parent name suppress_warnings intf
122
+ Cmti. read_interface parent name ~ suppress_warnings intf
123
123
in
124
124
compilation_unit_of_sig ~make_root ~imports: cmt_info.cmt_imports
125
125
~interface ~sourcefile ~name ~id ?canonical sg)
@@ -178,7 +178,7 @@ let read_cmt ~make_root ~parent ~filename ~suppress_warnings () =
178
178
~id content
179
179
| Implementation impl ->
180
180
let id, sg, canonical =
181
- Cmt. read_implementation parent name suppress_warnings impl
181
+ Cmt. read_implementation parent name ~ suppress_warnings impl
182
182
in
183
183
compilation_unit_of_sig ~make_root ~imports ~interface ~sourcefile
184
184
~name ~id ?canonical sg
@@ -189,7 +189,7 @@ let read_cmi ~make_root ~parent ~filename ~suppress_warnings () =
189
189
match cmi_info.cmi_crcs with
190
190
| (name , (Some _ as interface )) :: imports when name = cmi_info.cmi_name ->
191
191
let id, sg =
192
- Cmi. read_interface parent name suppress_warnings
192
+ Cmi. read_interface parent name ~ suppress_warnings
193
193
(Odoc_model.Compat. signature cmi_info.cmi_sign)
194
194
in
195
195
compilation_unit_of_sig ~make_root ~imports ~interface ~name ~id sg
Original file line number Diff line number Diff line change @@ -70,15 +70,15 @@ let root_pp fmt (_ : Odoc_model.Root.t) = Format.fprintf fmt "Common.root"
70
70
71
71
let model_of_string str =
72
72
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
74
74
75
75
let model_of_string_impl str =
76
76
#if OCAML_VERSION < (4 ,13 ,0 )
77
77
let (cmt,_) = cmt_of_string str in
78
78
#else
79
79
let cmt = (cmt_of_string str).structure in
80
80
#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
82
82
83
83
let signature_of_mli_string str =
84
84
Odoc_xref2.Ident. reset () ;
You can’t perform that action at this time.
0 commit comments