package ocamlformat-lib

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type t
val empty_line_between : t -> Stdlib.Lexing.position -> Stdlib.Lexing.position -> Ocamlformat_stdlib.bool

empty_line_between t p1 p2 is true if there is an empty line between p1 and p2. The lines containing p1 and p2 are not considered empty.

val empty_line_before : t -> Ocaml_common.Location.t -> Ocamlformat_stdlib.bool
val tokens_between : t -> filter:(Parser_extended.Parser.token -> Ocamlformat_stdlib.bool) -> Stdlib.Lexing.position -> Stdlib.Lexing.position -> (Parser_extended.Parser.token * Ocaml_common.Location.t) Ocamlformat_stdlib.list
val string_literal : t -> [ `Normalize | `Preserve ] -> Ocaml_common.Location.t -> Ocamlformat_stdlib.string
val is_long_pmod_functor : t -> Extended_ast.module_expr -> Ocamlformat_stdlib.bool

is_long_pmod_functor source mod_exp holds if mod_exp is a Pmod_functor expression that is expressed in long ('functor (M) ->') form in source.

val is_long_pmty_functor : t -> Extended_ast.module_type -> Ocamlformat_stdlib.bool

is_long_pmty_functor source mod_type holds if mod_type is a Pmty_functor type that is expressed in long ('functor (M) ->') form in source.

val extend_loc_to_include_attributes : Ocaml_common.Location.t -> Extended_ast.attributes -> Ocaml_common.Location.t
OCaml

Innovation. Community. Security.