Ocamlformat.SourceSourceval create :
text:Ocamlformat_stdlib.string ->
tokens:
(Parser_extended.Parser.token * Ocaml_common.Location.t)
Ocamlformat_stdlib.list ->
tempty_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 tokens_between :
t ->
filter:(Parser_extended.Parser.token -> Ocamlformat_stdlib.bool) ->
Lexing.position ->
Lexing.position ->
(Parser_extended.Parser.token * Ocaml_common.Location.t)
Ocamlformat_stdlib.listval find_token_after :
t ->
filter:(Parser_extended.Parser.token -> Ocamlformat_stdlib.bool) ->
Lexing.position ->
(Parser_extended.Parser.token * Ocaml_common.Location.t)
Ocamlformat_stdlib.optionval find_token_before :
t ->
filter:(Parser_extended.Parser.token -> Ocamlformat_stdlib.bool) ->
Lexing.position ->
(Parser_extended.Parser.token * Ocaml_common.Location.t)
Ocamlformat_stdlib.optionval string_literal :
t ->
[ `Normalize | `Preserve ] ->
Ocaml_common.Location.t ->
Ocamlformat_stdlib.stringis_long_pexp_open source exp holds if exp is a Pexp_open expression that is expressed in long ('let open') form in source.
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.
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 begins_line :
?ignore_spaces:Ocamlformat_stdlib.bool ->
t ->
Ocaml_common.Location.t ->
Ocamlformat_stdlib.boolval extension_using_sugar :
name:Ocamlformat_stdlib.string Ocaml_common.Location.loc ->
payload:Ocaml_common.Location.t ->
Ocamlformat_stdlib.boolval extend_loc_to_include_attributes :
Ocaml_common.Location.t ->
Extended_ast.attributes ->
Ocaml_common.Location.tval type_constraint_is_first :
Extended_ast.core_type ->
Ocaml_common.Location.t ->
Ocamlformat_stdlib.boolval loc_of_first_token_at :
t ->
Ocaml_common.Location.t ->
Parser_extended.Parser.token ->
Ocaml_common.Location.t Ocamlformat_stdlib.optionval find_first_token_on_line :
t ->
Ocamlformat_stdlib.int ->
(Parser_extended.Parser.token * Ocaml_common.Location.t)
Ocamlformat_stdlib.option