package ocamlformat-lib

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
val fmt_position : bool -> Format.formatter -> Lexing.position -> unit
val curr_indent : int ref
val line : int -> Format.formatter -> ('a, Format.formatter, unit) format -> 'a
type cmts = {
  1. before : Ocamlformat_ocaml_common.Location.t -> string list option;
  2. within : Ocamlformat_ocaml_common.Location.t -> string list option;
  3. after : Ocamlformat_ocaml_common.Location.t -> string list option;
}
val cmts : cmts option ref
val fmt_cmts : int -> Format.formatter -> string -> string list option -> unit
val fmt_longident_aux : Format.formatter -> Ocamlformat_ocaml_common.Longident.t -> unit
val fmt_string_loc : Format.formatter -> string Ocamlformat_ocaml_common.Location.loc -> unit
val fmt_str_opt_loc : Format.formatter -> string option Ocamlformat_ocaml_common.Location.loc -> unit
val fmt_char_option : Format.formatter -> char option -> unit
val fmt_mutable_flag : Format.formatter -> Asttypes.mutable_flag -> unit
val fmt_virtual_flag : Format.formatter -> Asttypes.virtual_flag -> unit
val fmt_override_flag : Format.formatter -> Asttypes.override_flag -> unit
val fmt_closed_flag : Format.formatter -> Asttypes.closed_flag -> unit
val fmt_obj_closed_flag : Format.formatter -> Asttypes.obj_closed_flag -> unit
val fmt_rec_flag : Format.formatter -> Asttypes.rec_flag -> unit
val fmt_direction_flag : Format.formatter -> Asttypes.direction_flag -> unit
val fmt_private_flag : Format.formatter -> Asttypes.private_flag -> unit
val fmt_opt : (Format.formatter -> 'a -> unit) -> Format.formatter -> 'a option -> unit
val fmt_private_virtual_flag : Format.formatter -> Asttypes.private_virtual -> unit
val fmt_mutable_virtual_flag : Format.formatter -> Asttypes.mutable_virtual -> unit
val fmt_constant : int -> Format.formatter -> Parsetree.constant -> unit
val list : int -> (int -> Format.formatter -> 'a -> unit) -> Format.formatter -> 'a list -> unit
val option : int -> (int -> Format.formatter -> 'a -> unit) -> Format.formatter -> 'a option -> unit
val string : int -> Format.formatter -> string -> unit
val string_loc : int -> Format.formatter -> string Ocamlformat_ocaml_common.Location.loc -> unit
val str_opt_loc : int -> Format.formatter -> string option Ocamlformat_ocaml_common.Location.loc -> unit
val arg_label : int -> Format.formatter -> Asttypes.arg_label -> unit
val paren_kind : int -> Format.formatter -> Asttypes.paren_kind -> unit
val variant_var : int -> Format.formatter -> Asttypes.variant_var -> unit
val arrow_param : int -> Format.formatter -> Parsetree.arrow_param -> unit
val object_field : int -> Format.formatter -> Parsetree.object_field -> unit
val package_type : int -> Format.formatter -> Parsetree.package_type -> unit
val if_branch : int -> Format.formatter -> Parsetree.if_branch -> unit
val function_body : int -> Format.formatter -> Parsetree.function_body -> unit
val type_constraint : int -> Format.formatter -> Parsetree.type_constraint -> unit
val value_description : int -> Format.formatter -> Parsetree.value_description -> unit
val attribute : int -> Format.formatter -> string -> Parsetree.attribute -> unit
val attributes : int -> Format.formatter -> Parsetree.attributes -> unit
val ext_attrs : int -> Format.formatter -> Parsetree.ext_attrs -> unit
val type_kind : int -> Format.formatter -> Parsetree.type_kind -> unit
val type_extension : int -> Format.formatter -> Parsetree.type_extension -> unit
val type_exception : int -> Format.formatter -> Parsetree.type_exception -> unit
val extension_constructor : int -> Format.formatter -> Parsetree.extension_constructor -> unit
val extension_constructor_kind : int -> Format.formatter -> Parsetree.extension_constructor_kind -> unit
val class_signature : int -> Format.formatter -> Parsetree.class_signature -> unit
val class_infos : 'a. string -> (int -> Format.formatter -> 'a -> unit) -> int -> Format.formatter -> 'a Parsetree.class_infos -> unit
val class_description : int -> Format.formatter -> Parsetree.class_type Parsetree.class_infos -> unit
val class_structure : int -> Format.formatter -> Parsetree.class_structure -> unit
val class_field_value_kind : int -> Format.formatter -> Parsetree.class_field_value_kind -> unit
val class_field_method_kind : int -> Format.formatter -> Parsetree.class_field_method_kind -> unit
val functor_parameter : int -> Format.formatter -> Parsetree.functor_parameter Asttypes.loc -> unit
val signature : int -> Format.formatter -> Parsetree.signature -> unit
val modtype_declaration : int -> Format.formatter -> Parsetree.module_type option -> unit
val with_constraint : int -> Format.formatter -> Parsetree.with_constraint -> unit
val structure : int -> Format.formatter -> Parsetree.structure -> unit
val module_type_declaration : int -> Format.formatter -> Parsetree.module_type_declaration -> unit
val core_type_x_core_type_x_location : int -> Format.formatter -> (Parsetree.core_type * Parsetree.core_type * Ocamlformat_ocaml_common.Location.t) -> unit
val constructor_decl : int -> Format.formatter -> Parsetree.constructor_declaration -> unit
val constructor_arguments : int -> Format.formatter -> Parsetree.constructor_arguments -> unit
val label_decl : int -> Format.formatter -> Parsetree.label_declaration -> unit
val longident_x_pattern : int -> Format.formatter -> (Ocamlformat_ocaml_common.Longident.t Asttypes.loc * Parsetree.core_type option * Parsetree.pattern option) -> unit
val case : int -> Format.formatter -> Parsetree.case -> unit
val open_infos : 'a. string -> (int -> Format.formatter -> 'a -> unit) -> int -> Format.formatter -> 'a Parsetree.open_infos -> unit
val open_description : int -> Format.formatter -> Parsetree.open_description -> unit
val open_declaration : int -> Format.formatter -> Parsetree.open_declaration -> unit
val include_infos : 'a. string -> (int -> Format.formatter -> 'a -> unit) -> int -> Format.formatter -> 'a Parsetree.include_infos -> unit
val include_description : int -> Format.formatter -> Parsetree.include_description -> unit
val include_declaration : int -> Format.formatter -> Parsetree.include_declaration -> unit
val value_bindings : int -> Format.formatter -> Parsetree.value_bindings -> unit
val string_x_expression : int -> Format.formatter -> (Asttypes.label Asttypes.loc * Parsetree.expression) -> unit
val label_x_expression : int -> Format.formatter -> (Asttypes.arg_label * Parsetree.expression) -> unit
val row_field : int -> Format.formatter -> Parsetree.row_field -> unit
val toplevel_phrase : int -> Format.formatter -> Parsetree.toplevel_phrase -> unit
val directive_argument : int -> Format.formatter -> Parsetree.directive_argument -> unit
val interface : Format.formatter -> Parsetree.signature_item list -> unit
val implementation : Format.formatter -> Parsetree.structure_item list -> unit
val top_phrase : Format.formatter -> Parsetree.toplevel_phrase -> unit
val repl_phrase : Format.formatter -> Parsetree.repl_phrase -> unit
val expression : Format.formatter -> Parsetree.expression -> unit
val payload : Format.formatter -> Parsetree.payload -> unit
val core_type : Format.formatter -> Parsetree.core_type -> unit
val module_type : Format.formatter -> Parsetree.module_type -> unit
val pattern : Format.formatter -> Parsetree.pattern -> unit
val type_declaration : Format.formatter -> Parsetree.type_declaration -> unit
val value_binding : Format.formatter -> Parsetree.value_binding -> unit
val module_binding : Format.formatter -> Parsetree.module_binding -> unit
val module_declaration : Format.formatter -> Parsetree.module_declaration -> unit
val class_expr : Format.formatter -> Parsetree.class_expr -> unit
val class_type : Format.formatter -> Parsetree.class_type -> unit
val class_field : Format.formatter -> Parsetree.class_field -> unit
val class_type_field : Format.formatter -> Parsetree.class_type_field -> unit
val module_expr : Format.formatter -> Parsetree.module_expr -> unit
val structure_item : Format.formatter -> Parsetree.structure_item -> unit
val signature_item : Format.formatter -> Parsetree.signature_item -> unit
val expr_function_param : Format.formatter -> Parsetree.expr_function_param -> unit
val class_function_param : Format.formatter -> Parsetree.pparam_val Parsetree.function_param -> unit
val value_constraint : Format.formatter -> Parsetree.value_constraint -> unit
val binding_op : Format.formatter -> Parsetree.binding_op -> unit
val class_type_declaration : Format.formatter -> Parsetree.class_type Parsetree.class_infos -> unit
OCaml

Innovation. Community. Security.