Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
jonludlam committed Jan 13, 2025
1 parent 75488fa commit f746bbc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 3 additions & 1 deletion src/driver/compile.ml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,9 @@ let compile ?partial ~partial_dir (all : Odoc_unit.t list) =
| Some _ -> find_partials partial_dir
| None -> (Util.StringMap.empty, Hashtbl.create 10)
in
let hashes = Odoc_unit.fix_virtual ~precompiled_units:other_hashes ~units:hashes in
let hashes =
Odoc_unit.fix_virtual ~precompiled_units:other_hashes ~units:hashes
in
let all_hashes =
Util.StringMap.union (fun _x o1 o2 -> Some (o1 @ o2)) hashes other_hashes
in
Expand Down
8 changes: 4 additions & 4 deletions src/driver/odoc_unit.mli
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ type dirs = {
mld_dir : Fpath.t;
}

val fix_virtual :
precompiled_units:intf unit list Util.StringMap.t ->
units:intf unit list Util.StringMap.t ->
intf unit list Util.StringMap.t
(** [fix_virtual ~precompiled_units ~units] replaces the input file
in units representing implementations of virtual libraries.
Implementation units have a [cmt] but no [cmti], even though
Expand All @@ -90,7 +94,3 @@ type dirs = {
should not be changed. The types of the inputs and outputs
are hashtbls of units, where the hashtable key is the
interface hash. *)
val fix_virtual :
precompiled_units:intf unit list Util.StringMap.t ->
units:intf unit list Util.StringMap.t ->
intf unit list Util.StringMap.t

0 comments on commit f746bbc

Please sign in to comment.