File tree Expand file tree Collapse file tree 3 files changed +22
-3
lines changed Expand file tree Collapse file tree 3 files changed +22
-3
lines changed Original file line number Diff line number Diff line change @@ -303,11 +303,11 @@ let rec extract_structure_tree_items : bool -> Typedtree.structure_item list ->
303
303
let open Typedtree in
304
304
match items with
305
305
#if OCAML_VERSION < (4 ,3 ,0 )
306
- | { str_desc = Tstr_type decls ; str_loc; _ } :: rest ->
306
+ | { str_desc = Tstr_type decls ; _ } :: rest ->
307
307
#else
308
- | { str_desc = Tstr_type (_ , decls ); str_loc; _ } :: rest -> (* TODO: handle rec_flag *)
308
+ | { str_desc = Tstr_type (_ , decls ); _ } :: rest -> (* TODO: handle rec_flag *)
309
309
#endif
310
- List. map (fun decl -> `Type (decl.typ_id, hide_item, Some str_loc ))
310
+ List. map (fun decl -> `Type (decl.typ_id, hide_item, Some decl.typ_loc ))
311
311
decls @ extract_structure_tree_items hide_item rest
312
312
313
313
#if OCAML_VERSION < (4 ,14 ,0 )
Original file line number Diff line number Diff line change @@ -28,3 +28,6 @@ module X : sig
28
28
end = struct
29
29
type t = int
30
30
end
31
+
32
+ type a1 = int
33
+ and a2 = a1
Original file line number Diff line number Diff line change @@ -31,6 +31,9 @@ Files containing some values:
31
31
end = struct
32
32
type t = int
33
33
end
34
+
35
+ type a1 = int
36
+ and a2 = a1
34
37
35
38
Source pages require a parent:
36
39
@@ -134,6 +137,14 @@ Source links generated in the documentation:
134
137
<div class="spec module anchored" id="module-X" >
135
138
<a href="#module-X" class="anchor" ></a >
136
139
<a href="../root/source/a.ml.html#module-X" class="source_link" >Source
140
+ --
141
+ <div class="spec type anchored" id="type-a1" >
142
+ <a href="#type-a1" class="anchor" ></a >
143
+ <a href="../root/source/a.ml.html#def_24" class="source_link" >Source</a >
144
+ --
145
+ <div class="spec type anchored" id="type-a2" >
146
+ <a href="#type-a2" class="anchor" ></a >
147
+ <a href="../root/source/a.ml.html#def_25" class="source_link" >Source</a >
137
148
138
149
Ids generated in the source code:
139
150
@@ -168,6 +179,9 @@ Ids generated in the source code:
168
179
id= " L28"
169
180
id= " L29"
170
181
id= " L30"
182
+ id= " L31"
183
+ id= " L32"
184
+ id= " L33"
171
185
id= " type-t"
172
186
id= " type-truc"
173
187
id= " value-{ x } 2"
@@ -189,3 +203,5 @@ Ids generated in the source code:
189
203
id= " module-X"
190
204
id= " module-X.type-t"
191
205
id= " module-X.type-t"
206
+ id= " def_24"
207
+ id= " def_25"
You can’t perform that action at this time.
0 commit comments