Ocamlformat_lib.SugarSourceval fun_ :
Cmts.t ->
?will_keep_first_ast_node:Ocamlformat_stdlib.bool ->
Extended_ast.expression Ast.xt ->
arg_kind Ocamlformat_stdlib.list * Extended_ast.expression Ast.xtfun_ cmts will_keep_first_ast_node exp returns the list of arguments and the body of the function exp. will_keep_first_ast_node is set by default, otherwise the exp is returned without modification.
val cl_fun :
?will_keep_first_ast_node:Ocamlformat_stdlib.bool ->
Cmts.t ->
Extended_ast.class_expr Ast.xt ->
arg_kind Ocamlformat_stdlib.list * Extended_ast.class_expr Ast.xtcl_fun will_keep_first_ast_node cmts exp returns the list of arguments and the body of the function exp. will_keep_first_ast_node is set by default, otherwise the exp is returned without modification.
val sequence :
Cmts.t ->
Extended_ast.expression Ast.xt ->
(Parser_extended.Asttypes.label Parser_extended.Asttypes.loc
Ocamlformat_stdlib.option
* Extended_ast.expression Ast.xt)
Ocamlformat_stdlib.listsequence cmts exp returns the list of expressions (with the optional extension) from a sequence of expressions exp.
val mod_with :
Extended_ast.module_type Ast.xt ->
(Extended_ast.with_constraint Ocamlformat_stdlib.list
* Ocaml_common.Warnings.loc
* Extended_ast.attributes)
Ocamlformat_stdlib.list
* Extended_ast.module_type Ast.xtmod_with m returns the list of with type constraints of module type m.