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

# [NAME](#NAME)

Ast\_helper.Cf - Class fields

# [Module](#Module)

Module Ast\_helper.Cf

# [Documentation](#Documentation)

Module **Cf**  
: **sig end**

Class fields

*val mk* : **?loc:Ast\_helper.loc -&gt;** **?attrs:Ast\_helper.attrs -&gt;** **?docs:Docstrings.docs -&gt; Parsetree.class\_field\_desc -&gt; Parsetree.class\_field**

*val attr* : **Parsetree.class\_field -&gt; Parsetree.attribute -&gt; Parsetree.class\_field**

*val inherit\_* : **?loc:Ast\_helper.loc -&gt;** **?attrs:Ast\_helper.attrs -&gt;** **Asttypes.override\_flag -&gt;** **Parsetree.class\_expr -&gt; Ast\_helper.str option -&gt; Parsetree.class\_field**

*val val\_* : **?loc:Ast\_helper.loc -&gt;** **?attrs:Ast\_helper.attrs -&gt;** **Ast\_helper.str -&gt;** **Asttypes.mutable\_flag -&gt; Parsetree.class\_field\_kind -&gt; Parsetree.class\_field**

*val method\_* : **?loc:Ast\_helper.loc -&gt;** **?attrs:Ast\_helper.attrs -&gt;** **Ast\_helper.str -&gt;** **Asttypes.private\_flag -&gt; Parsetree.class\_field\_kind -&gt; Parsetree.class\_field**

*val constraint\_* : **?loc:Ast\_helper.loc -&gt;** **?attrs:Ast\_helper.attrs -&gt;** **Parsetree.core\_type -&gt; Parsetree.core\_type -&gt; Parsetree.class\_field**

*val initializer\_* : **?loc:Ast\_helper.loc -&gt;** **?attrs:Ast\_helper.attrs -&gt; Parsetree.expression -&gt; Parsetree.class\_field**

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

*val attribute* : **?loc:Ast\_helper.loc -&gt; Parsetree.attribute -&gt; Parsetree.class\_field**

*val text* : **Docstrings.text -&gt; Parsetree.class\_field list**

*val virtual\_* : **Parsetree.core\_type -&gt; Parsetree.class\_field\_kind**

*val concrete* : **Asttypes.override\_flag -&gt; Parsetree.expression -&gt; Parsetree.class\_field\_kind**

2026-10-23 OCamldoc

---

Document: Ast_helper.Cf(3o) from ocaml 5.5.2-r0 (Chainguard OS)
Source: https://github.com/ocaml/ocaml
