package atdgen
Module Ag_mappingSource
Source
type ('a, 'b) mapping = [ | `Unit of loc * 'a * 'b| `Bool of loc * 'a * 'b| `Int of loc * 'a * 'b| `Float of loc * 'a * 'b| `String of loc * 'a * 'b| `Sum of loc * ('a, 'b) variant_mapping array * 'a * 'b| `Record of loc * ('a, 'b) field_mapping array * 'a * 'b| `Tuple of loc * ('a, 'b) cell_mapping array * 'a * 'b| `List of loc * ('a, 'b) mapping * 'a * 'b| `Option of loc * ('a, 'b) mapping * 'a * 'b| `Nullable of loc * ('a, 'b) mapping * 'a * 'b| `Wrap of loc * ('a, 'b) mapping * 'a * 'b| `Name of loc * string * ('a, 'b) mapping list * 'a option * 'b option| `External of loc * string * ('a, 'b) mapping list * 'a * 'b| `Tvar of loc * string
]Source
and ('a, 'b) field_mapping = {f_loc : loc;f_name : string;f_kind : Atd_ast.field_kind;f_value : ('a, 'b) mapping;f_arepr : 'a;f_brepr : 'b;
}Source
val as_abstract :
[> `Name of 'a * (Atd_ast.loc * string * 'b list) * 'c ] ->
(Atd_ast.loc * 'c) optionSource
val subst_variant :
('a, 'b) mapping Env.t ->
('a, 'b) variant_mapping ->
('a, 'b) variant_mapping