= 1024" x-on:close-sidebar="sidebar=window.innerWidth >= 1024 && true">
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
val expr_of_typ : loc:Ppxlib.location -> Ppxlib.core_type -> Ppxlib.expression
expr_of_typ ~loc typ
returns an expression of type `Rpc.Types.typ` that represents the core_type typ`.
type field_def = {
f_name : string;
rpc_name : string;
value_name : string;
expr : Ppxlib.expression;
default : Ppxlib.expression option;
typ : Ppxlib.expression;
}
val str_of_type :
Ppxlib.Location.t ->
Ppxlib.type_declaration ->
Migrate_parsetree.Ast_410.Parsetree.value_binding list
str_of_type loc type_decl
returns a list of value bindings that are values of type `Rpc.Types.def` and `Rpc.Types.typ` that represent the newly defined type.