File tree Expand file tree Collapse file tree 9 files changed +12
-11
lines changed Expand file tree Collapse file tree 9 files changed +12
-11
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ val of_cmt :
2
2
Odoc_model.Paths.Identifier.SourcePage .t option ->
3
3
Odoc_model.Paths.Identifier.RootModule .t ->
4
4
Cmt_format .cmt_infos ->
5
- Shape_ .t option * Odoc_model.Lang.Source_info .infos
5
+ Lookup_def .t option * Odoc_model.Lang.Source_info .infos
6
6
(* * Extract all implementation information from a [cmt]: the shape, and the
7
7
{{!Odoc_model.Lang.Source_info.infos}source infos} (local and global
8
8
definitions and occurrences).
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change 1
1
open Result
2
2
module Error = Odoc_model. Error
3
- module Shape = Shape_
3
+
4
+ module Lookup_def = Lookup_def
4
5
5
6
let read_string parent_definition filename text =
6
7
let location =
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ open Result
2
2
open Odoc_model
3
3
open Odoc_model.Paths
4
4
5
- module Shape = Shape_
5
+ module Lookup_def = Lookup_def
6
6
7
7
type make_root =
8
8
module_name :string ->
@@ -19,7 +19,7 @@ val read_cmt_infos :
19
19
Identifier.SourcePage .t option ->
20
20
Identifier.RootModule .t ->
21
21
filename :string ->
22
- ((Shape .t * Lang.Source_info .infos ) option , Error .t ) result
22
+ ((Lookup_def .t * Lang.Source_info .infos ) option , Error .t ) result
23
23
Error .with_warnings
24
24
(* * Read the shape from a .cmt file. *)
25
25
@@ -34,7 +34,7 @@ val read_cmt :
34
34
parent :Identifier .ContainerPage .t option ->
35
35
filename :string ->
36
36
source_id_opt :Identifier .SourcePage .t option ->
37
- ( Lang.Compilation_unit .t * (Shape .t * Lang.Source_info .infos ) option ,
37
+ ( Lang.Compilation_unit .t * (Lookup_def .t * Lang.Source_info .infos ) option ,
38
38
Error .t )
39
39
result
40
40
Error .with_warnings
Original file line number Diff line number Diff line change 17
17
open Odoc_model
18
18
open Or_error
19
19
20
- type unit_content = Lang.Compilation_unit .t * Odoc_loader.Shape .t option
20
+ type unit_content = Lang.Compilation_unit .t * Odoc_loader.Lookup_def .t option
21
21
22
22
type content =
23
23
| Page_content of Lang.Page .t
Original file line number Diff line number Diff line change 19
19
open Odoc_model
20
20
open Or_error
21
21
22
- type unit_content = Lang.Compilation_unit .t * Odoc_loader.Shape .t option
22
+ type unit_content = Lang.Compilation_unit .t * Odoc_loader.Lookup_def .t option
23
23
24
24
(* * Either a page or a module. *)
25
25
type content =
Original file line number Diff line number Diff line change @@ -235,7 +235,7 @@ let build_compile_env_for_unit
235
235
in
236
236
let lookup_unit = lookup_unit ~important_digests ~imports_map ap
237
237
and lookup_page = lookup_page ap
238
- and lookup_def = Odoc_loader.Shape . lookup_def lookup in
238
+ and lookup_def = Odoc_loader.Lookup_def . lookup_def lookup in
239
239
let resolver = { Env. open_units; lookup_unit; lookup_page; lookup_def } in
240
240
Env. env_of_unit m ~linking: false resolver
241
241
@@ -247,7 +247,7 @@ let build ?(imports_map = StringMap.empty)
247
247
| Some (m , Some shape ) -> Some (m, shape)
248
248
| _ -> None
249
249
in
250
- let lookup_def = Odoc_loader.Shape . lookup_def lookup in
250
+ let lookup_def = Odoc_loader.Lookup_def . lookup_def lookup in
251
251
let lookup_unit = lookup_unit ~important_digests ~imports_map ap
252
252
and lookup_page = lookup_page ap in
253
253
{ Env. open_units; lookup_unit; lookup_page; lookup_def }
Original file line number Diff line number Diff line change @@ -38,15 +38,15 @@ val lookup_page : t -> string -> Odoc_model.Lang.Page.t option
38
38
39
39
val build_compile_env_for_unit :
40
40
t ->
41
- Odoc_loader.Shape .t option ->
41
+ Odoc_loader.Lookup_def .t option ->
42
42
Odoc_model.Lang.Compilation_unit .t ->
43
43
Odoc_xref2.Env .t
44
44
(* * Initialize the environment for compiling the given module. *)
45
45
46
46
val build_link_env_for_unit :
47
47
t ->
48
48
Odoc_model.Lang.Compilation_unit .t ->
49
- Odoc_loader.Shape .t option ->
49
+ Odoc_loader.Lookup_def .t option ->
50
50
Odoc_xref2.Env .t
51
51
(* * Initialize the environment for linking the given module. *)
52
52
You can’t perform that action at this time.
0 commit comments