File tree Expand file tree Collapse file tree 2 files changed +8
-9
lines changed Expand file tree Collapse file tree 2 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -252,7 +252,7 @@ module Make (Syntax : SYNTAX) = struct
252
252
let path id = Url.Path. from_identifier id
253
253
let url id = Url. from_path (path id)
254
254
255
- let to_link documentation implementation =
255
+ let to_link { Lang.Source_info. documentation; implementation} =
256
256
let documentation =
257
257
let open Paths.Path.Resolved in
258
258
match documentation with
@@ -281,13 +281,12 @@ module Make (Syntax : SYNTAX) = struct
281
281
| `SourceLocationInternal (_ , local ) ->
282
282
Some (Anchor (LocalName. to_string local))
283
283
| _ -> None )
284
- | Module { documentation; _ } -> to_link documentation None
285
- | ModuleType { documentation; _ } -> to_link documentation None
286
- | Type { documentation; _ } -> to_link documentation None
287
- | ClassType { documentation; _ } -> to_link documentation None
288
- | Value { documentation; implementation } ->
289
- to_link documentation implementation
290
- | Constructor { documentation; _ } -> to_link documentation None
284
+ | Module v -> to_link v
285
+ | ModuleType v -> to_link v
286
+ | Type v -> to_link v
287
+ | ClassType v -> to_link v
288
+ | Value v -> to_link v
289
+ | Constructor v -> to_link v
291
290
292
291
let source id syntax_info infos source_code =
293
292
let url = path id in
Original file line number Diff line number Diff line change @@ -429,7 +429,7 @@ let rec unit env t =
429
429
let source_info =
430
430
let env =
431
431
match t.content with
432
- | Module sg -> Env. open_signature sg env |> Env. add_docs sg.doc
432
+ | Module sg -> Env. open_signature sg env
433
433
| Pack _ -> env
434
434
in
435
435
let open Source_info in
You can’t perform that action at this time.
0 commit comments