Ast\_helper.Str(3) OCaml library Ast\_helper.Str(3)

# [NAME](#NAME)

Ast\_helper.Str - Structure items

# [Module](#Module)

Module Ast\_helper.Str

# [Documentation](#Documentation)

Module **Str**  
: **sig end**

Structure items

*val mk* : **?loc:Ast\_helper.loc -&gt;** **Parsetree.structure\_item\_desc -&gt; Parsetree.structure\_item**

*val eval* : **?loc:Ast\_helper.loc -&gt;** **?attrs:Parsetree.attributes -&gt;** **Parsetree.expression -&gt; Parsetree.structure\_item**

*val value* : **?loc:Ast\_helper.loc -&gt;** **Asttypes.rec\_flag -&gt; Parsetree.value\_binding list -&gt; Parsetree.structure\_item**

*val primitive* : **?loc:Ast\_helper.loc -&gt;** **Parsetree.value\_description -&gt; Parsetree.structure\_item**

*val type\_* : **?loc:Ast\_helper.loc -&gt;** **Asttypes.rec\_flag -&gt;** **Parsetree.type\_declaration list -&gt; Parsetree.structure\_item**

*val type\_extension* : **?loc:Ast\_helper.loc -&gt; Parsetree.type\_extension -&gt; Parsetree.structure\_item**

*val exception\_* : **?loc:Ast\_helper.loc -&gt; Parsetree.type\_exception -&gt; Parsetree.structure\_item**

*val module\_* : **?loc:Ast\_helper.loc -&gt; Parsetree.module\_binding -&gt; Parsetree.structure\_item**

*val rec\_module* : **?loc:Ast\_helper.loc -&gt;** **Parsetree.module\_binding list -&gt; Parsetree.structure\_item**

*val modtype* : **?loc:Ast\_helper.loc -&gt;** **Parsetree.module\_type\_declaration -&gt; Parsetree.structure\_item**

*val open\_* : **?loc:Ast\_helper.loc -&gt; Parsetree.open\_declaration -&gt; Parsetree.structure\_item**

*val class\_* : **?loc:Ast\_helper.loc -&gt;** **Parsetree.class\_declaration list -&gt; Parsetree.structure\_item**

*val class\_type* : **?loc:Ast\_helper.loc -&gt;** **Parsetree.class\_type\_declaration list -&gt; Parsetree.structure\_item**

*val include\_* : **?loc:Ast\_helper.loc -&gt;** **Parsetree.include\_declaration -&gt; Parsetree.structure\_item**

*val extension* : **?loc:Ast\_helper.loc -&gt;** **?attrs:Ast\_helper.attrs -&gt; Parsetree.extension -&gt; Parsetree.structure\_item**

*val attribute* : **?loc:Ast\_helper.loc -&gt; Parsetree.attribute -&gt; Parsetree.structure\_item**

*val text* : **Docstrings.text -&gt; Parsetree.structure\_item list**

2026-10-01 OCamldoc

---

Document: Ast_helper.Str(3o) from ocaml 5.5.1-r1 (Chainguard OS)
Source: https://github.com/ocaml/ocaml
