Ast_helper.Str(3)

πŸ’– Ast_helper.Str πŸ’–

okay so bestie, we're in the OCaml library manual, and this page is all about Ast_helper.Str β€” the structure items corner of the universe. no cap, it's a whole list of vals and we're gonna go through every single one. 🫢

✨ NAME ✨

Ast_helper.Str - Structure items

πŸŽ€ Module πŸŽ€

Module Ast_helper.Str

πŸ’… Documentation πŸ’…

Module Str : sig end

πŸ¦‹ Structure items πŸ¦‹

These are the structure-item helpers, literally right here. Every signature below is exact β€” flags, arrows, types, all of it. πŸ’…

  • mk β€” takes an optional ?loc:Ast_helper.loc and a Parsetree.structure_item_desc, and returns a Parsetree.structure_item. iconic constructor energy.
val mk : ?loc:Ast_helper.loc -> Parsetree.structure_item_desc ->
Parsetree.structure_item
  • eval β€” optional ?loc:Ast_helper.loc, optional ?attrs:Parsetree.attributes, then a Parsetree.expression, and it gives back a Parsetree.structure_item.
val eval : ?loc:Ast_helper.loc -> ?attrs:Parsetree.attributes ->
Parsetree.expression -> Parsetree.structure_item
  • value β€” optional ?loc:Ast_helper.loc, an Asttypes.rec_flag, and a Parsetree.value_binding list, returning a Parsetree.structure_item.
val value : ?loc:Ast_helper.loc -> Asttypes.rec_flag ->
Parsetree.value_binding list -> Parsetree.structure_item
  • primitive β€” optional ?loc:Ast_helper.loc, a Parsetree.value_description, and you get a Parsetree.structure_item.
val primitive : ?loc:Ast_helper.loc -> Parsetree.value_description ->
Parsetree.structure_item
  • type_ β€” optional ?loc:Ast_helper.loc, an Asttypes.rec_flag, and a Parsetree.type_declaration list, returning a Parsetree.structure_item. the underscore is part of the name, bestie, don't come for her πŸ’…
val type_ : ?loc:Ast_helper.loc -> Asttypes.rec_flag ->
Parsetree.type_declaration list -> Parsetree.structure_item
  • type_extension β€” optional ?loc:Ast_helper.loc, a Parsetree.type_extension, returns a Parsetree.structure_item.
val type_extension : ?loc:Ast_helper.loc -> Parsetree.type_extension ->
Parsetree.structure_item
  • exception_ β€” optional ?loc:Ast_helper.loc, a Parsetree.type_exception, returns a Parsetree.structure_item. yes, there's an underscore at the end 😭
val exception_ : ?loc:Ast_helper.loc -> Parsetree.type_exception ->
Parsetree.structure_item
  • module_ β€” optional ?loc:Ast_helper.loc, a Parsetree.module_binding, returns a Parsetree.structure_item. another underscore bestie, we stay unbothered πŸŽ€
val module_ : ?loc:Ast_helper.loc -> Parsetree.module_binding ->
Parsetree.structure_item
  • rec_module β€” optional ?loc:Ast_helper.loc, a Parsetree.module_binding list, returns a Parsetree.structure_item.
val rec_module : ?loc:Ast_helper.loc -> Parsetree.module_binding list ->
Parsetree.structure_item
  • modtype β€” optional ?loc:Ast_helper.loc, a Parsetree.module_type_declaration, returns a Parsetree.structure_item.
val modtype : ?loc:Ast_helper.loc -> Parsetree.module_type_declaration
-> Parsetree.structure_item
  • open_ β€” optional ?loc:Ast_helper.loc, a Parsetree.open_declaration, returns a Parsetree.structure_item. open underscore, open slay πŸ¦‹
val open_ : ?loc:Ast_helper.loc -> Parsetree.open_declaration ->
Parsetree.structure_item
  • class_ β€” optional ?loc:Ast_helper.loc, a Parsetree.class_declaration list, returns a Parsetree.structure_item.
val class_ : ?loc:Ast_helper.loc -> Parsetree.class_declaration list ->
Parsetree.structure_item
  • class_type β€” optional ?loc:Ast_helper.loc, a Parsetree.class_type_declaration list, returns a Parsetree.structure_item.
val class_type : ?loc:Ast_helper.loc -> Parsetree.class_type_declaration
list -> Parsetree.structure_item
  • include_ β€” optional ?loc:Ast_helper.loc, a Parsetree.include_declaration, returns a Parsetree.structure_item. include underscore, include the vibe ✨
val include_ : ?loc:Ast_helper.loc -> Parsetree.include_declaration ->
Parsetree.structure_item
  • extension β€” optional ?loc:Ast_helper.loc, optional ?attrs:Ast_helper.attrs, a Parsetree.extension, returns a Parsetree.structure_item.
val extension : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs ->
Parsetree.extension -> Parsetree.structure_item
  • attribute β€” optional ?loc:Ast_helper.loc, a Parsetree.attribute, returns a Parsetree.structure_item.
val attribute : ?loc:Ast_helper.loc -> Parsetree.attribute ->
Parsetree.structure_item
  • text β€” takes a Docstrings.text and returns a Parsetree.structure_item list. list bestie, not one item β€” a whole list. periodt πŸ’œ
val text : Docstrings.text -> Parsetree.structure_item list

and that's the whole page, bestie 🌈 this one came from the source/version OCamldoc, dated 2026-06-22, and it's Ast_helper.Str(3) β€” mwah πŸ’‹

πŸ“¦ where this page comes from