package ppx_counters

  1. Overview
  2. Docs

Generate useful code for stats gathering from records of counters See generated code with : ocamlc -dsource ../_build/default/orig.pp.ml

val lid : string -> Ppxlib.Longident.t {Located}1.t
val get_type_constr1 : Ppxlib.core_type -> (string * Ppxlib.core_type list) option
val get_type_constr : Ppxlib.core_type -> string list
type kind =
  1. | Ref
  2. | Mut
  3. | Opt
type field = {
  1. field : string;
  2. name : string;
  3. kind : kind;
}
val make_field : Ppxlib.label_declaration -> field
val access : field -> string -> Astlib.Ast_500.Parsetree.expression
val gen_fresh : field list -> Ppxlib_ast.Ast.structure_item
val gen_export : field list -> Ppxlib_ast.Ast.structure_item
val gen_sub : field list -> Ppxlib_ast.Ast.structure_item
val gen_copy : field list -> Ppxlib_ast.Ast.structure_item