package ocamlformat-lib

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Params.ExpSource

Sourcemodule Infix_op_arg : sig ... end
Sourceval 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.t
Sourceval 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.t

Box and assemble the parts kw (up to the arguments), args and annot.

Sourceval break_fun_kw : Conf_t.t -> ctx:Ast.t -> ctx0:Ast.t -> last_arg:Ocamlformat_stdlib.bool -> Fmt.t
Sourceval box_fun_expr : Conf.t -> source:Source.t -> ctx0:Ast.t -> ctx:Ast.t -> (Fmt.t -> Fmt.t) * Ocamlformat_stdlib.int

return a box with an indent and minus the value of the indent to be used for a closing parenthesis

Sourceval box_function_cases : Conf.t -> ?indent:Ocamlformat_stdlib.int -> ctx:Ast.t -> ctx0:Ast.t -> parens:Ocamlformat_stdlib.bool -> Fmt.t -> Fmt.t
Sourceval function_attrs_sp : Conf.t -> ctx0:Ast.t -> ctx:Ast.t -> Ocamlformat_stdlib.bool

Whether a space should be added between the function keyword and the attributes.

Sourceval break_fun_decl_args : Conf.t -> ctx:Ast.t -> last_arg:Ocamlformat_stdlib.bool -> Fmt.t
Sourceval single_line_function : ctx:Ast.t -> ctx0:Ast.t -> args:'a Ocamlformat_stdlib.list -> Ocamlformat_stdlib.bool
Sourceval box_fun_decl : ctx0:Ast.t -> ctx:Ast.t -> Conf.t -> Fmt.t -> Fmt.t

Box a function decl from the label to the arrow.

Sourceval box_fun_decl_after_pro : ctx0:Ast.t -> Fmt.t -> Fmt.t

Box a function decl from after the pro to the arrow.

Sourceval box_beginend : Conf.t -> ctx0:Ast.t -> ctx:Ast.t -> Ocamlformat_stdlib.bool
Sourceval box_beginend_subexpr : Conf.t -> ctx0:Ast.t -> ctx:Ast.t -> Ocamlformat_stdlib.bool
Sourceval match_inner_pro : ctx0:Ast.t -> parens:Ocamlformat_stdlib.bool -> Ocamlformat_stdlib.bool

whether the pro argument of fmt_match should be displayed as an inner or outer prologue.

Sourceval function_inner_pro : has_cmts_outer:Ocamlformat_stdlib.bool -> ctx0:Ast.t -> Ocamlformat_stdlib.bool

whether the pro argument of fmt_function should be displayed as an inner or outer prologue.

Sourceval ifthenelse_inner_pro : parens:Ocamlformat_stdlib.bool -> ctx0:Ast.t -> Ocamlformat_stdlib.bool

whether the pro argument should be displayed as an inner or outer prologue when printing Pexp_ifthenelse.

Sourceval ctx_is_apply_and_exp_is_arg_with_label : ctx:Ast.t -> ctx0:Ast.t -> Ocamlformat_stdlib.bool
Sourceval ctx_is_apply_and_exp_is_last_arg_and_other_args_are_simple : Conf_t.t -> ctx:Ast.t -> ctx0:Ast.t -> Ocamlformat_stdlib.bool
Sourceval fun_label_sep : Conf.t -> Fmt.t