package ppxlib_jane

  1. Overview
  2. Docs

Module Shim.Pexp_functionSource

Match and construct Pexp_function, as in the OCaml parsetree at or after 5.2.

Sourcetype function_param = {
  1. pparam_loc : Astlib.Location.t;
  2. pparam_desc : function_param_desc;
}
Sourcetype function_constraint = {
  1. mode_annotations : Modes.t;
  2. type_constraint : type_constraint;
}
Sourceval to_parsetree : params:function_param list -> constraint_:function_constraint option -> body:function_body -> Ppxlib_ast.Parsetree.expression_desc