Debian Codegraph @

expander/expand_sexp_of.mli

raw symbols SCIP
1 open! Base
2 open! Ppxlib
3
4 module Sig_generate_sexp_of : sig
5 (** Given a type, produce the type of its [sexp_of] conversion. *)
6 val type_of_sexp_of : loc:location -> core_type -> core_type
7
8 (** Derive a [sexp_of] interface for a list of type declarations. *)
9 val mk_sig
10 : loc:location
11 -> path:string
12 -> rec_flag * type_declaration list
13 -> signature_item list
14
15 (** Derive a [sexp_of] interface for an exception declaration. *)
16 val mk_sig_exn : loc:location -> path:string -> type_exception -> signature_item list
17 end
18
19 module Str_generate_sexp_of : sig
20 (** Given a type, produce its [sexp_of] conversion. *)
21 val sexp_of_core_type : core_type -> expression
22
23 (** Derive a [sexp_of] implementation for a list of type declarations. *)
24 val sexp_of_tds
25 : loc:location
26 -> path:string
27 -> rec_flag * type_declaration list
28 -> structure_item list
29
30 (** Derive a [sexp_of] implementation for an exception declaration. *)
31 val sexp_of_exn : loc:location -> path:string -> type_exception -> structure_item list
32 end