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 extend_loc_to_include_attributes : Ocaml_common.Location.t -> Extended_ast.attributes -> Ocaml_common.Location.t
OCaml

Innovation. Community. Security.