Ast_helper.Ci(3)

hey bestie πŸ’– welcome to Ast_helper.Ci(3) from the OCaml library manual β€” yes, the whole manual name is folded in right here like a lil name tag πŸŽ€

✨ NAME ✨

Ast_helper.Ci - Classes

that's the name, no cap β€” it's literally giving "classes module" energy πŸ’…


πŸ¦‹ Module πŸ¦‹

Module   Ast_helper.Ci

so yeah, this whole page lives under Ast_helper.Ci β€” iconic module placement, honestly 🫢

🌈 Documentation 🌈

πŸ’… Module Ci πŸ’…

okay so the docs give you this exact signature situation:

Module Ci
 : sig end

Module Ci : sig end β€” that's it. A whole module signature with absolutely nothing inside it, like an empty little room with really good lighting 😌✨

πŸ‘‘ Classes πŸ‘‘

under Classes, there is exactly one thing to look at, and it's val mk β€” no more, no less, don't let anyone tell you otherwise πŸ’€

here's the signature, character-for-character, because we do not skip tokens in this group chat:

val mk : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs ->
       ?docs:Docstrings.docs -> ?text:Docstrings.text ->
       ?virt:Asttypes.virtual_flag -> ?params:(Parsetree.core_type *
       (Asttypes.variance * Asttypes.injectivity)) list -> Ast_helper.str -> 'a
       -> 'a Parsetree.class_infos

quick parameter roll call, bestie, because every single one is showing up to the function party πŸŽ€

  • ?loc:Ast_helper.loc β€” optional loc slot, type Ast_helper.loc
  • ?attrs:Ast_helper.attrs β€” optional attrs slot, type Ast_helper.attrs
  • ?docs:Docstrings.docs β€” optional docs slot, type Docstrings.docs
  • ?text:Docstrings.text β€” optional text slot, type Docstrings.text
  • ?virt:Asttypes.virtual_flag β€” optional virt slot, type Asttypes.virtual_flag
  • ?params:(Parsetree.core_type * (Asttypes.variance * Asttypes.injectivity)) list β€” optional params slot, and yes that exact list type is the vibe
  • Ast_helper.str β€” first required argument, no ? in sight πŸ”₯
  • 'a β€” second required argument, a type variable, main character behavior
  • returns 'a Parsetree.class_infos β€” that's the result type, periodt

all the ? guys are optional; the last two are required, so don't forget them or the type checker will simply pass away πŸ˜­πŸ’…


mwah πŸ’‹ this page was brought to you by OCamldoc, dated 2026-06-22, and the page itself is Ast_helper.Ci(3) β€” go slay those class infos, bestie 🌟

πŸ“¦ where this page comes from