1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79
|
(**************************************************************************)
(* *)
(* OCaml *)
(* *)
(* Sebastien Hinderer, projet Cambium, INRIA Paris *)
(* *)
(* Copyright 2022 Institut National de Recherche en Informatique et *)
(* en Automatique. *)
(* *)
(* All rights reserved. This file is distributed under the terms of *)
(* the GNU Lesser General Public License version 2.1, with the *)
(* special exception on linking described in the file LICENSE. *)
(* *)
(**************************************************************************)
(** Definition of a class which outputs a dot file showing
top modules dependencies. *)
val dot_include_all : bool ref
val dot_types : bool ref
val dot_reduce : bool ref
val dot_colors : string list ref
module Generator :
sig
class dot :
object
val mutable colors : string list
val mutable loc_colors : (Odoc_info.Name.t * string) list
val mutable modules : Odoc_info.Module.t_module list
method generate : Odoc_info.Module.t_module list -> unit
method generate_for_module :
Format.formatter -> Odoc_info.Module.t_module -> unit
method generate_for_type :
Format.formatter ->
Odoc_info.Type.t_type * Odoc_info.Name.t list -> unit
method generate_modules : Odoc_info.Module.t_module list -> unit
method generate_types : Odoc_info.Type.t_type list -> unit
method get_one_color : string option
method header : string
method node_color : Odoc_info.Name.t -> string option
method print_module_atts :
Format.formatter -> Odoc_info.Module.t_module -> unit
method print_one_dep :
Format.formatter -> Odoc_info.Name.t -> Odoc_info.Name.t -> unit
method print_type_atts :
Format.formatter -> Odoc_info.Type.t_type -> unit
end
end
module type Dot_generator =
sig
class dot :
object
val mutable colors : string list
val mutable loc_colors : (Odoc_info.Name.t * string) list
val mutable modules : Odoc_info.Module.t_module list
method generate : Odoc_info.Module.t_module list -> unit
method generate_for_module :
Format.formatter -> Odoc_info.Module.t_module -> unit
method generate_for_type :
Format.formatter ->
Odoc_info.Type.t_type * Odoc_info.Name.t list -> unit
method generate_modules : Odoc_info.Module.t_module list -> unit
method generate_types : Odoc_info.Type.t_type list -> unit
method get_one_color : string option
method header : string
method node_color : Odoc_info.Name.t -> string option
method print_module_atts :
Format.formatter -> Odoc_info.Module.t_module -> unit
method print_one_dep :
Format.formatter -> Odoc_info.Name.t -> Odoc_info.Name.t -> unit
method print_type_atts :
Format.formatter -> Odoc_info.Type.t_type -> unit
end
end
|