jon.recoil.org

Module Shape.Item

Shape's items are elements of a structure or, in the case of constructors and labels, elements of a record or variants definition seen as a structure. These structures model module components and nested types' constructors and labels.

type t = string * Shape.Sig_component_kind.t
val name : Shape.Item.t -> string
val value : Ident.t -> Shape.Item.t
val type_ : Ident.t -> Shape.Item.t
val constr : Ident.t -> Shape.Item.t
val label : Ident.t -> Shape.Item.t
val unboxed_label : Ident.t -> Shape.Item.t
val module_ : Ident.t -> Shape.Item.t
val module_type : Ident.t -> Shape.Item.t
val extension_constructor : Ident.t -> Shape.Item.t
val class_ : Ident.t -> Shape.Item.t
val class_type : Ident.t -> Shape.Item.t
val print : Stdlib.Format.formatter -> Shape.Item.t -> unit
val compare : Shape.Item.t -> Shape.Item.t -> int
val is_constructor : Shape.Item.t -> bool
val is_label : Shape.Item.t -> bool
val is_unboxed_label : Shape.Item.t -> bool
module Map : Stdlib.Map.S with type key = Shape.Item.t