Reason
  • Docs
  • Try
  • API
  • Community
  • Blog
  • Languages iconEnglish
    • 日本語
    • Deutsch
    • Español
    • Français
    • 한국어
    • Português (Brasil)
    • Русский
    • Українська
    • 中文
    • 繁體中文
    • Help Translate
  • GitHub
Previous  Up  Next

Module Ast_helper.Te

module Te: sig .. end
Type extensions

let mk:
  (
    ~attrs: Ast_helper.attrs=?,
    ~docs: Docstrings.docs=?,
    ~params: list((Parsetree.core_type, Asttypes.variance))=?,
    ~priv: Asttypes.private_flag=?,
    Ast_helper.lid,
    list(Parsetree.extension_constructor)
  ) =>
  Parsetree.type_extension;
let constructor:
  (
    ~loc: Ast_helper.loc=?,
    ~attrs: Ast_helper.attrs=?,
    ~docs: Docstrings.docs=?,
    ~info: Docstrings.info=?,
    Ast_helper.str,
    Parsetree.extension_constructor_kind
  ) =>
  Parsetree.extension_constructor;
let decl:
  (
    ~loc: Ast_helper.loc=?,
    ~attrs: Ast_helper.attrs=?,
    ~docs: Docstrings.docs=?,
    ~info: Docstrings.info=?,
    ~args: list(Parsetree.core_type)=?,
    ~res: Parsetree.core_type=?,
    Ast_helper.str
  ) =>
  Parsetree.extension_constructor;
let rebind:
  (
    ~loc: Ast_helper.loc=?,
    ~attrs: Ast_helper.attrs=?,
    ~docs: Docstrings.docs=?,
    ~info: Docstrings.info=?,
    Ast_helper.str,
    Ast_helper.lid
  ) =>
  Parsetree.extension_constructor;