2002-03-27 08:20:32 -08:00
|
|
|
(***********************************************************************)
|
|
|
|
(* OCamldoc *)
|
|
|
|
(* *)
|
|
|
|
(* Maxence Guesdon, projet Cristal, INRIA Rocquencourt *)
|
|
|
|
(* *)
|
|
|
|
(* Copyright 2001 Institut National de Recherche en Informatique et *)
|
|
|
|
(* en Automatique. All rights reserved. This file is distributed *)
|
|
|
|
(* under the terms of the Q Public License version 1.0. *)
|
|
|
|
(* *)
|
|
|
|
(***********************************************************************)
|
|
|
|
|
2003-11-24 02:44:07 -08:00
|
|
|
(* $Id$ *)
|
2002-03-27 08:20:32 -08:00
|
|
|
|
|
|
|
(** The functions to get a string from different kinds of elements (types, modules, ...). *)
|
|
|
|
|
2003-09-05 08:40:12 -07:00
|
|
|
(** @return the variance string for the given type and (covariant, contravariant) information. *)
|
|
|
|
val string_of_variance : Odoc_type.t_type -> (bool * bool) -> string
|
|
|
|
|
|
|
|
(** This function returns a string to represent the given list of types,
|
2004-03-22 07:06:31 -08:00
|
|
|
with a given separator.
|
|
|
|
@param par can be used to force the addition or not of parentheses around the returned string.
|
|
|
|
*)
|
|
|
|
val string_of_type_list : ?par: bool -> string -> Types.type_expr list -> string
|
2003-09-05 08:40:12 -07:00
|
|
|
|
|
|
|
(** This function returns a string to represent the list of type parameters
|
2004-03-22 07:06:31 -08:00
|
|
|
for the given type. *)
|
2003-09-05 08:40:12 -07:00
|
|
|
val string_of_type_param_list : Odoc_type.t_type -> string
|
|
|
|
|
2010-01-22 04:48:24 -08:00
|
|
|
(** This function returns a string to represent the given list of
|
2003-10-17 08:30:47 -07:00
|
|
|
type parameters of a class or class type,
|
2004-03-22 07:06:31 -08:00
|
|
|
with a given separator. *)
|
2003-10-17 08:30:47 -07:00
|
|
|
val string_of_class_type_param_list : Types.type_expr list -> string
|
|
|
|
|
2002-03-27 08:20:32 -08:00
|
|
|
(** @return a string to describe the given type. *)
|
|
|
|
val string_of_type : Odoc_type.t_type -> string
|
|
|
|
|
2004-08-20 10:04:35 -07:00
|
|
|
(** @return a string to display the parameters of the given class,
|
|
|
|
in the same form as the compiler. *)
|
|
|
|
val string_of_class_params : Odoc_class.t_class -> string
|
|
|
|
|
2002-03-27 08:20:32 -08:00
|
|
|
(** @return a string to describe the given exception. *)
|
|
|
|
val string_of_exception : Odoc_exception.t_exception -> string
|
|
|
|
|
|
|
|
(** @return a string to describe the given value. *)
|
|
|
|
val string_of_value : Odoc_value.t_value -> string
|
|
|
|
|
|
|
|
(** @return a string to describe the given attribute. *)
|
|
|
|
val string_of_attribute : Odoc_value.t_attribute -> string
|
|
|
|
|
|
|
|
(** @return a string to describe the given method. *)
|
|
|
|
val string_of_method : Odoc_value.t_method -> string
|