Ast_helper.Cl(3)
π NAME π
okay so bestie, this is the Ast_helper.Cl(3) page from the OCaml library β and the vibe is literally Class expressions. We are in Ast_helper.Cl, and this page is here to hand you the class-expression helper squad. No cap. π¦
π¦ Module π¦
Module β Ast_helper.Cl
That's the module, periodt. It's giving βwe are exactly where we say we are.β β¨
π Documentation π
πΈ Module Cl πΈ
The signature wrapper is literally this, bestie:
: sig end
Like, that's the whole sig end moment. Iconic, lowkey. π
β¨ Class expressions β¨
These are the helper values for class expressions. Keep every type exactly as written β no renaming, no βfixingβ, no merging, fr fr. π«Ά
Here is the full val lineup, character-for-character:
val mk : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs ->
Parsetree.class_expr_desc -> Parsetree.class_expr
val attr : Parsetree.class_expr -> Parsetree.attribute ->
Parsetree.class_expr
val constr : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs ->
Ast_helper.lid -> Parsetree.core_type list -> Parsetree.class_expr
val structure : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs ->
Parsetree.class_structure -> Parsetree.class_expr
val fun_ : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs ->
Asttypes.arg_label -> Parsetree.expression option -> Parsetree.pattern
-> Parsetree.class_expr -> Parsetree.class_expr
val apply : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs ->
Parsetree.class_expr -> (Asttypes.arg_label * Parsetree.expression) list
-> Parsetree.class_expr
val let_ : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs ->
Asttypes.rec_flag -> Parsetree.value_binding list ->
Parsetree.class_expr -> Parsetree.class_expr
val constraint_ : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs ->
Parsetree.class_expr -> Parsetree.class_type -> Parsetree.class_expr
val extension : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs ->
Parsetree.extension -> Parsetree.class_expr
val open_ : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs ->
Parsetree.open_description -> Parsetree.class_expr ->
Parsetree.class_expr
You see every single val? mk, attr, constr, structure, fun_, apply, let_, constraint_, extension, and open_. All ten of them, bestie β no disappearing acts. π
Reminder: those?loc:Ast_helper.locand?attrs:Ast_helper.attrsbits are optional args, and the type names are exactlyParsetree.*/Asttypes.*/Ast_helper.*as shown. Don't get creative with them. π
That's it. The page is literally that clean. β¨
source/version and date check: this cutie was brought to you by OCamldoc, dated 2026-06-22, and the page is Ast_helper.Cl(3). Bye bestie, go slay your class expressions. π
ππ¦
π¦ where this page comes from
- arch rolling: ocaml 5.5.0-1 Β· LGPL2.1 AND custom: QPL-1.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms