package ocamlformat-lib
Module Params.ExpSource
Source
val wrap :
Conf.t ->
?disambiguate:Ocamlformat_stdlib.bool ->
?fits_breaks:Ocamlformat_stdlib.bool ->
?offset_closing_paren:Ocamlformat_stdlib.int ->
parens:Ocamlformat_stdlib.bool ->
Fmt.t ->
Fmt.tSource
val box_fun_decl_args :
ctx:Ast.t ->
ctx0:Ast.t ->
?last_arg:Ocamlformat_stdlib.bool ->
?epi:Fmt.t ->
Conf.t ->
parens:Ocamlformat_stdlib.bool ->
kw:Fmt.t ->
args:Fmt.t ->
annot:Fmt.t Ocamlformat_stdlib.option ->
Fmt.tBox and assemble the parts kw (up to the arguments), args and annot.
Source
val box_fun_expr :
Conf.t ->
source:Source.t ->
ctx0:Ast.t ->
ctx:Ast.t ->
(Fmt.t -> Fmt.t) * Ocamlformat_stdlib.intreturn a box with an indent and minus the value of the indent to be used for a closing parenthesis
Source
val box_function_cases :
Conf.t ->
?indent:Ocamlformat_stdlib.int ->
ctx:Ast.t ->
ctx0:Ast.t ->
parens:Ocamlformat_stdlib.bool ->
Fmt.t ->
Fmt.tWhether a space should be added between the function keyword and the attributes.
Source
val single_line_function :
ctx:Ast.t ->
ctx0:Ast.t ->
args:'a Ocamlformat_stdlib.list ->
Ocamlformat_stdlib.bool