File: odoc_to_text.mli

package info (click to toggle)
ocaml 5.3.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 43,124 kB
  • sloc: ml: 355,439; ansic: 51,636; sh: 25,098; asm: 5,413; makefile: 3,673; python: 919; javascript: 273; awk: 253; perl: 59; fortran: 21; cs: 9
file content (96 lines) | stat: -rw-r--r-- 4,979 bytes parent folder | download
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
(**************************************************************************)
(*                                                                        *)
(*                                 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.          *)
(*                                                                        *)
(**************************************************************************)

(** Text generation. *)

class virtual to_text :
  object
    val mutable tag_functions :
      (string * (Odoc_info.text -> Odoc_info.text)) list
    method virtual label : ?no_:bool -> string -> string
    method normal_class_params :
      Odoc_info.Name.t -> Odoc_info.Class.t_class -> string
    method normal_class_type : Odoc_info.Name.t -> Types.class_type -> string
    method normal_class_type_param_list :
      Odoc_info.Name.t -> Types.type_expr list -> string
    method normal_cstr_args :
      ?par:bool ->
      Odoc_info.Name.t -> Odoc_info.Type.constructor_args -> string
    method normal_module_type :
      ?code:string -> Odoc_info.Name.t -> Types.module_type -> string
    method normal_type : Odoc_info.Name.t -> Types.type_expr -> string
    method normal_type_list :
      ?par:bool ->
      Odoc_info.Name.t -> string -> Types.type_expr list -> string
    method relative_idents : Odoc_info.Name.t -> string -> string
    method relative_module_idents : Odoc_info.Name.t -> string -> string
    method text_of_alerts :
      Odoc_info.alert list -> Odoc_info.text_element list
    method text_of_attribute :
      Odoc_info.Value.t_attribute -> Odoc_info.text_element list
    method text_of_author_list : string list -> Odoc_info.text_element list
    method text_of_before :
      (string * Odoc_info.text) list -> Odoc_info.text_element list
    method text_of_class_kind :
      Odoc_info.Name.t ->
      Odoc_info.Class.class_kind -> Odoc_info.text_element list
    method text_of_class_params :
      Odoc_info.Name.t -> Odoc_info.Class.t_class -> Odoc_types.text
    method text_of_class_type_kind :
      Odoc_info.Name.t ->
      Odoc_info.Class.class_type_kind -> Odoc_info.text_element list
    method text_of_class_type_param_expr_list :
      Odoc_info.Name.t -> Types.type_expr list -> Odoc_info.text_element list
    method text_of_custom : (string * Odoc_info.text) list -> Odoc_info.text
    method text_of_exception :
      Odoc_info.Exception.t_exception -> Odoc_info.text_element list
    method text_of_info :
      ?block:bool -> Odoc_info.info option -> Odoc_info.text_element list
    method text_of_method :
      Odoc_info.Value.t_method -> Odoc_info.text_element list
    method text_of_module_kind :
      ?with_def_syntax:bool ->
      Odoc_info.Module.module_kind -> Odoc_info.text_element list
    method text_of_module_parameter_list :
      (Odoc_info.Module.module_parameter * Odoc_info.text_element list option)
      list -> Odoc_info.text_element list
    method text_of_module_type :
      Types.module_type -> Odoc_info.text_element list
    method text_of_module_type_kind :
      ?with_def_syntax:bool ->
      Odoc_info.Module.module_type_kind -> Odoc_info.text_element list
    method text_of_parameter_description :
      Odoc_info.Parameter.parameter -> Odoc_info.text
    method text_of_parameter_list :
      Odoc_info.Name.t ->
      Odoc_info.Parameter.parameter list -> Odoc_info.text_element list
    method text_of_raised_exceptions :
      Odoc_info.raised_exception list -> Odoc_info.text_element list
    method text_of_return_opt :
      Odoc_info.text option -> Odoc_info.text_element list
    method text_of_see : Odoc_info.see -> Odoc_info.text
    method text_of_sees : Odoc_info.see list -> Odoc_info.text_element list
    method text_of_short_type_expr :
      Odoc_info.Name.t -> Types.type_expr -> Odoc_info.text_element list
    method text_of_since_opt : string option -> Odoc_info.text_element list
    method text_of_type_expr :
      Odoc_info.Name.t -> Types.type_expr -> Odoc_info.text_element list
    method text_of_type_expr_list :
      Odoc_info.Name.t ->
      string -> Types.type_expr list -> Odoc_info.text_element list
    method text_of_value :
      Odoc_info.Value.t_value -> Odoc_info.text_element list
    method text_of_version_opt : string option -> Odoc_info.text_element list
  end