| File lib/ocaml/pkg-lib/json-static/pa_json_static.cmi_pretty | GODI Package godi-json-static |
| Library json-static |
| pa_json_static.cmi_pretty | Sources |
val check_unique : ('a -> Camlp4.PreCast.Loc.t * 'b) -> 'a list -> unit val unopt : 'a -> 'a option -> 'a val optmap : ('a -> 'b option) -> 'a list -> 'b list type field = Pa_json_static.field = { field_caml_name : string; field_json_name : string; field_type : t; field_caml_loc : Camlp4.PreCast.Loc.t; field_json_loc : Camlp4.PreCast.Loc.t; optional : bool; default : Camlp4.PreCast.Ast.expr option; is_mutable : bool; } and constructor = Pa_json_static.constructor = { cons_caml_name : string; cons_json_name : string; cons_args : t list; cons_caml_loc : Camlp4.PreCast.Loc.t; cons_json_loc : Camlp4.PreCast.Loc.t; } and type_expr = Pa_json_static.type_expr = List of t | Array of t | Option of t | Object of field list | Record of field list | Hashtbl of t | Assoc of t | Tuple of t list | Variant of constructor list | Poly of constructor list | Name of string | String | Bool | Int | Float | Number | Raw | Custom of string and t = Camlp4.PreCast.Loc.t * type_expr and type_def = Pa_json_static.type_def = { def : t; is_predefined : bool; is_private : bool; } module StringMap : sig type key = String.t type 'a t = 'a Map.Make(String).t val empty : 'a t val is_empty : 'a t -> bool val add : key -> 'a -> 'a t -> 'a t val find : key -> 'a t -> 'a val remove : key -> 'a t -> 'a t val mem : key -> 'a t -> bool val iter : (key -> 'a -> unit) -> 'a t -> unit val map : ('a -> 'b) -> 'a t -> 'b t val mapi : (key -> 'a -> 'b) -> 'a t -> 'b t val fold : (key -> 'a -> 'b -> 'b) -> 'a t -> 'b -> 'b val compare : ('a -> 'a -> int) -> 'a t -> 'a t -> int val equal : ('a -> 'a -> bool) -> 'a t -> 'a t -> bool end val make_typedef : Camlp4.PreCast.Ast.loc -> 'a StringMap.t -> ((Camlp4.PreCast.Ast.loc * string) * type_def) list -> Camlp4.PreCast.Ast.str_item val numbered_list : 'a list -> ('a * string) list val eta_expand : Camlp4.PreCast.Ast.expr -> Camlp4.PreCast.Ast.expr val make_ofjson : Camlp4.PreCast.Ast.loc -> ((Camlp4.PreCast.Ast.loc * string) * type_def) list -> Camlp4.PreCast.Ast.str_item val make_tojson : Camlp4.PreCast.Ast.loc -> ((Camlp4.PreCast.Ast.loc * string) * type_def) list -> Camlp4.PreCast.Ast.str_item val expand_typedefs : Camlp4.PreCast.Ast.loc -> ((Camlp4.PreCast.Ast.loc * StringMap.key) * type_def) list -> Camlp4.PreCast.Ast.str_item val o2b : 'a option -> bool val is_reserved : string -> bool val list_of_opt : 'a option -> 'a list val list_of_optlist : 'a list option -> 'a list val check_methods : field list -> unit val string_assoc : Camlp4.PreCast.Loc.t -> 'a * type_expr -> 'a * type_expr val eval_string : string -> string