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.locand aParsetree.structure_item_desc, and returns aParsetree.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 aParsetree.expression, and it gives back aParsetree.structure_item.
val eval : ?loc:Ast_helper.loc -> ?attrs:Parsetree.attributes ->
Parsetree.expression -> Parsetree.structure_item
valueβ optional?loc:Ast_helper.loc, anAsttypes.rec_flag, and aParsetree.value_binding list, returning aParsetree.structure_item.
val value : ?loc:Ast_helper.loc -> Asttypes.rec_flag ->
Parsetree.value_binding list -> Parsetree.structure_item
primitiveβ optional?loc:Ast_helper.loc, aParsetree.value_description, and you get aParsetree.structure_item.
val primitive : ?loc:Ast_helper.loc -> Parsetree.value_description ->
Parsetree.structure_item
type_β optional?loc:Ast_helper.loc, anAsttypes.rec_flag, and aParsetree.type_declaration list, returning aParsetree.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, aParsetree.type_extension, returns aParsetree.structure_item.
val type_extension : ?loc:Ast_helper.loc -> Parsetree.type_extension ->
Parsetree.structure_item
exception_β optional?loc:Ast_helper.loc, aParsetree.type_exception, returns aParsetree.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, aParsetree.module_binding, returns aParsetree.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, aParsetree.module_binding list, returns aParsetree.structure_item.
val rec_module : ?loc:Ast_helper.loc -> Parsetree.module_binding list ->
Parsetree.structure_item
modtypeβ optional?loc:Ast_helper.loc, aParsetree.module_type_declaration, returns aParsetree.structure_item.
val modtype : ?loc:Ast_helper.loc -> Parsetree.module_type_declaration
-> Parsetree.structure_item
open_β optional?loc:Ast_helper.loc, aParsetree.open_declaration, returns aParsetree.structure_item. open underscore, open slay π¦
val open_ : ?loc:Ast_helper.loc -> Parsetree.open_declaration ->
Parsetree.structure_item
class_β optional?loc:Ast_helper.loc, aParsetree.class_declaration list, returns aParsetree.structure_item.
val class_ : ?loc:Ast_helper.loc -> Parsetree.class_declaration list ->
Parsetree.structure_item
class_typeβ optional?loc:Ast_helper.loc, aParsetree.class_type_declaration list, returns aParsetree.structure_item.
val class_type : ?loc:Ast_helper.loc -> Parsetree.class_type_declaration
list -> Parsetree.structure_item
include_β optional?loc:Ast_helper.loc, aParsetree.include_declaration, returns aParsetree.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, aParsetree.extension, returns aParsetree.structure_item.
val extension : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs ->
Parsetree.extension -> Parsetree.structure_item
attributeβ optional?loc:Ast_helper.loc, aParsetree.attribute, returns aParsetree.structure_item.
val attribute : ?loc:Ast_helper.loc -> Parsetree.attribute ->
Parsetree.structure_item
textβ takes aDocstrings.textand returns aParsetree.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
- 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