package ocaml-base-compiler

  1. Overview
  2. Docs
module Name = Odoc_name
type class_element =
  1. | Class_attribute of Odoc_value.t_attribute
  2. | Class_method of Odoc_value.t_method
  3. | Class_comment of Odoc_types.text
type cct =
  1. | Cl of t_class
  2. | Cltype of t_class_type * Types.type_expr list
and inherited_class = {
  1. ic_name : Name.t;
  2. mutable ic_class : cct option;
  3. ic_text : Odoc_types.text option;
}
and class_apply = {
  1. capp_name : Name.t;
  2. mutable capp_class : t_class option;
  3. capp_params : Types.type_expr list;
  4. capp_params_code : string list;
}
and class_constr = {
  1. cco_name : Name.t;
  2. mutable cco_class : cct option;
  3. cco_type_parameters : Types.type_expr list;
}
and class_kind =
  1. | Class_structure of inherited_class list * class_element list
  2. | Class_apply of class_apply
  3. | Class_constr of class_constr
  4. | Class_constraint of class_kind * class_type_kind
and t_class = {
  1. cl_name : Name.t;
  2. mutable cl_info : Odoc_types.info option;
  3. cl_type : Types.class_type;
  4. cl_type_parameters : Types.type_expr list;
  5. cl_virtual : bool;
  6. mutable cl_kind : class_kind;
  7. mutable cl_parameters : Odoc_parameter.parameter list;
  8. mutable cl_loc : Odoc_types.location;
}
and class_type_alias = {
  1. cta_name : Name.t;
  2. mutable cta_class : cct option;
  3. cta_type_parameters : Types.type_expr list;
}
and class_type_kind =
  1. | Class_signature of inherited_class list * class_element list
  2. | Class_type of class_type_alias
and t_class_type = {
  1. clt_name : Name.t;
  2. mutable clt_info : Odoc_types.info option;
  3. clt_type : Types.class_type;
  4. clt_type_parameters : Types.type_expr list;
  5. clt_virtual : bool;
  6. mutable clt_kind : class_type_kind;
  7. mutable clt_loc : Odoc_types.location;
}
val class_parameter_text_by_name : t_class -> string -> Odoc_types.text option
val class_elements : ?trans:bool -> t_class -> class_element list
val class_type_elements : ?trans:bool -> t_class_type -> class_element list
val class_attributes : ?trans:bool -> t_class -> Odoc_value.t_attribute list
val class_methods : ?trans:bool -> t_class -> Odoc_value.t_method list
val class_comments : ?trans:bool -> t_class -> Odoc_types.text list
val class_update_parameters_text : t_class -> unit
val class_type_attributes : ?trans:bool -> t_class_type -> Odoc_value.t_attribute list
val class_type_methods : ?trans:bool -> t_class_type -> Odoc_value.t_method list
val class_type_comments : ?trans:bool -> t_class_type -> Odoc_types.text list
val class_type_parameter_text_by_name : t_class_type -> string -> Odoc_types.text option