package ppxlib_jane

  1. Overview
  2. Docs

Module Shim.Signature_item_descSource

Sourcetype t =
  1. | Psig_value of Ppxlib_ast.Parsetree.value_description
    (*
    • val x: T
    • external x: T = "s1" ... "sn"
    *)
  2. | Psig_type of Ppxlib_ast.Asttypes.rec_flag * Ppxlib_ast.Parsetree.type_declaration list
    (*

    type t1 = ... and ... and tn = ...

    *)
  3. | Psig_typesubst of Ppxlib_ast.Parsetree.type_declaration list
    (*

    type t1 := ... and ... and tn := ...

    *)
  4. | Psig_typext of Ppxlib_ast.Parsetree.type_extension
    (*

    type t1 += ...

    *)
  5. | Psig_exception of Ppxlib_ast.Parsetree.type_exception
    (*

    exception C of T

    *)
  6. | Psig_module of Ppxlib_ast.Parsetree.module_declaration
    (*

    module X = M and module X : MT

    *)
  7. | Psig_modsubst of Ppxlib_ast.Parsetree.module_substitution
    (*

    module X := M

    *)
  8. | Psig_recmodule of Ppxlib_ast.Parsetree.module_declaration list
    (*

    module rec X1 : MT1 and ... and Xn : MTn

    *)
  9. | Psig_modtype of Ppxlib_ast.Parsetree.module_type_declaration
    (*

    module type S = MT and module type S

    *)
  10. | Psig_modtypesubst of Ppxlib_ast.Parsetree.module_type_declaration
    (*

    module type S := ...

    *)
  11. | Psig_open of Ppxlib_ast.Parsetree.open_description
    (*

    open X

    *)
  12. | Psig_include of Ppxlib_ast.Parsetree.include_description * Modalities.t
    (*

    include MT

    *)
  13. | Psig_class of Ppxlib_ast.Parsetree.class_description list
    (*

    class c1 : ... and ... and cn : ...

    *)
  14. | Psig_class_type of Ppxlib_ast.Parsetree.class_type_declaration list
    (*

    class type ct1 = ... and ... and ctn = ...

    *)
  15. | Psig_attribute of Ppxlib_ast.Parsetree.attribute
    (*

    [\@\@\@id]

    *)
  16. | Psig_extension of Ppxlib_ast.Parsetree.extension * Ppxlib_ast.Parsetree.attributes
    (*

    [%%id]

    *)