To focus the search input from anywhere on the page, press the 'S' key.
in-package search v0.1.0
-
bigarray
-
dynlink
-
ocamlbytecomp
-
ocamlcommon
-
ocamlmiddleend
-
ocamloptcomp
-
odoc_info
-
raw_spacetime_lib
-
-
stdlib
-
str
-
threads
-
unix
Library
Module
Module type
Parameter
Class
Class type
Representation and manipulation of modules and module types.
Types
type module_element = Odoc_module.module_element =
| Element_module of t_module
| Element_module_type of t_module_type
| Element_included_module of included_module
| Element_class of Class.t_class
| Element_class_type of Class.t_class_type
| Element_value of Value.t_value
| Element_type_extension of Extension.t_type_extension
| Element_exception of Exception.t_exception
| Element_type of Type.t_type
| Element_module_comment of text
To keep the order of elements in a module.
Used where we can reference t_module or t_module_type.
and included_module = Odoc_module.included_module = {
im_name : Name.t;
(*Complete name of the included module.
*)mutable im_module : mmt option;
(*The included module or module type, if we found it.
*)mutable im_info : Odoc_types.info option;
(*comment associated with the include directive
*)
}
and module_alias = Odoc_module.module_alias = {
ma_name : Name.t;
(*Complete name of the target module.
*)mutable ma_module : mmt option;
(*The real module or module type if we could associate it.
*)
}
and module_parameter = Odoc_module.module_parameter = {
mp_name : string;
(*the name
*)mp_type : Types.module_type option;
(*the type
*)mp_type_code : string;
(*the original code
*)mp_kind : module_type_kind;
(*the way the parameter was built
*)
}
and module_kind = Odoc_module.module_kind =
| Module_struct of module_element list
(*A complete module structure.
*)| Module_alias of module_alias
(*Complete name and corresponding module if we found it
*)| Module_functor of module_parameter * module_kind
(*A functor, with its parameter and the rest of its definition
*)| Module_apply of module_kind * module_kind
(*A module defined by application of a functor.
*)| Module_with of module_type_kind * string
(*A module whose type is a with ... constraint. Should appear in interface files only.
*)| Module_constraint of module_kind * module_type_kind
(*A module constraint by a module type.
*)| Module_typeof of string
(*by now only the code of the module expression
*)| Module_unpack of string * module_type_alias
(*code of the expression and module type alias
*)
Different kinds of a module.
and t_module = Odoc_module.t_module = {
m_name : Name.t;
(*Complete name of the module.
*)mutable m_type : Types.module_type;
(*The type of the module.
*)mutable m_info : info option;
(*Information found in the optional associated comment.
*)m_is_interface : bool;
(*
*)true
for modules read from interface filesm_file : string;
(*The file the module is defined in.
*)mutable m_kind : module_kind;
(*The way the module is defined.
*)mutable m_loc : location;
mutable m_top_deps : Name.t list;
(*The toplevels module names this module depends on.
*)mutable m_code : string option;
(*The whole code of the module
*)mutable m_code_intf : string option;
(*The whole code of the interface of the module
*)m_text_only : bool;
(*
*)true
if the module comes from a text file
}
Representation of a module.
and module_type_alias = Odoc_module.module_type_alias = {
mta_name : Name.t;
(*Complete name of the target module type.
*)mutable mta_module : t_module_type option;
(*The real module type if we could associate it.
*)
}
and module_type_kind = Odoc_module.module_type_kind =
| Module_type_struct of module_element list
(*A complete module signature.
*)| Module_type_functor of module_parameter * module_type_kind
(*A functor, with its parameter and the rest of its definition
*)| <