package odoc
Source file entry.ml
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 71open Odoc_model.Lang open Odoc_model.Paths module Html = Tyxml.Html type type_decl_entry = { canonical : Path.Type.t option; equation : TypeDecl.Equation.t; representation : TypeDecl.Representation.t option; } type class_type_entry = { virtual_ : bool; params : TypeDecl.param list } type method_entry = { private_ : bool; virtual_ : bool; type_ : TypeExpr.t } type class_entry = { virtual_ : bool; params : TypeDecl.param list } type type_extension_entry = { type_path : Path.Type.t; type_params : TypeDecl.param list; private_ : bool; } type constructor_entry = { args : TypeDecl.Constructor.argument; res : TypeExpr.t; } type field_entry = { mutable_ : bool; type_ : TypeExpr.t; parent_type : TypeExpr.t; } type instance_variable_entry = { mutable_ : bool; virtual_ : bool; type_ : TypeExpr.t; } type value_entry = { value : Value.value; type_ : TypeExpr.t } type module_entry = { has_expansion : bool } type kind = | TypeDecl of type_decl_entry | Module of module_entry | Value of value_entry | Doc | Exception of constructor_entry | Class_type of class_type_entry | Method of method_entry | Class of class_entry | TypeExtension of type_extension_entry | ExtensionConstructor of constructor_entry | ModuleType of module_entry | Constructor of constructor_entry | Field of field_entry | Page of Odoc_model.Frontmatter.t | Impl | Dir type t = { id : Odoc_model.Paths.Identifier.Any.t; doc : Odoc_model.Comment.elements; kind : kind; } let entry ~id ~doc ~kind = let id = (id :> Odoc_model.Paths.Identifier.Any.t) in { id; kind; doc }