@@ -52,7 +52,7 @@ let read_cmt_infos source_id_opt id ~filename () =
5252
5353
5454let make_compilation_unit ~make_root ~imports ~interface ?sourcefile ~name ~id
55- ?canonical ?shape ~ uid_to_id ~source_info content =
55+ ?canonical ?shape_info ~source_info content =
5656 let open Odoc_model.Lang.Compilation_unit in
5757 let interface, digest =
5858 match interface with
@@ -89,16 +89,15 @@ let make_compilation_unit ~make_root ~imports ~interface ?sourcefile ~name ~id
8989 linked = false ;
9090 canonical;
9191 source_info;
92- shape;
93- uid_to_id;
92+ shape_info;
9493 }
9594
9695
9796let compilation_unit_of_sig ~make_root ~imports ~interface ?sourcefile ~name ~id
98- ?canonical ?shape ~ uid_to_id sg =
97+ ?canonical ?shape_info sg =
9998 let content = Odoc_model.Lang.Compilation_unit. Module sg in
10099 make_compilation_unit ~make_root ~imports ~interface ?sourcefile ~name ~id
101- ?canonical ?shape ~uid_to_id content
100+ ?canonical ?shape_info content
102101
103102let read_cmti ~make_root ~parent ~filename ~cmt_filename_opt ~source_id_opt () =
104103 let cmt_info = Cmt_format. read_cmt filename in
@@ -114,14 +113,14 @@ let read_cmti ~make_root ~parent ~filename ~cmt_filename_opt ~source_id_opt () =
114113 cmt_info.cmt_builddir )
115114 in
116115 let id, sg, canonical = Cmti. read_interface parent name intf in
117- let shape, uid_to_id , source_info =
116+ let shape_info , source_info =
118117 match cmt_filename_opt with
119118 | Some cmt_filename ->
120119 read_cmt_infos source_id_opt id ~filename: cmt_filename ()
121- | None -> (None , Odoc_model.Compat. empty_map, None )
120+ | None -> (None , None )
122121 in
123122 compilation_unit_of_sig ~make_root ~imports: cmt_info.cmt_imports
124- ~interface ~sourcefile ~name ~id ?shape ~uid_to_id ~source_info
123+ ~interface ~sourcefile ~name ~id ?shape_info ~source_info
125124 ?canonical sg)
126125 | _ -> raise Not_an_interface
127126
@@ -165,14 +164,14 @@ let read_cmt ~make_root ~parent ~filename ~source_id_opt () =
165164 in
166165 let content = Odoc_model.Lang.Compilation_unit. Pack items in
167166 make_compilation_unit ~make_root ~imports ~interface ~sourcefile ~name
168- ~id ~uid_to_id: Odoc_model.Compat. empty_map ~ source_info:None content
167+ ~id ~source_info: None content
169168 | Implementation impl ->
170169 let id, sg, canonical = Cmt. read_implementation parent name impl in
171- let shape, uid_to_id , source_info =
170+ let shape_info , source_info =
172171 read_cmt_infos source_id_opt id ~filename ()
173172 in
174173 compilation_unit_of_sig ~make_root ~imports ~interface ~sourcefile
175- ~name ~id ?canonical ?shape ~uid_to_id ~source_info sg
174+ ~name ~id ?canonical ?shape_info ~source_info sg
176175 | _ -> raise Not_an_implementation )
177176
178177let read_cmi ~make_root ~parent ~filename () =
@@ -184,7 +183,7 @@ let read_cmi ~make_root ~parent ~filename () =
184183 (Odoc_model.Compat. signature cmi_info.cmi_sign)
185184 in
186185 compilation_unit_of_sig ~make_root ~imports ~interface ~name ~id
187- ~source_info: None ~uid_to_id: Odoc_model.Compat. empty_map sg
186+ ~source_info: None sg
188187 | _ -> raise Corrupted
189188
190189(* * Catch errors from reading the object files and some internal errors *)
0 commit comments