Ocamlformat_lib.SourceSourceval create :
text:Ocamlformat_stdlib.string ->
tokens:
(Ocamlformat_parser_extended.Parser.token
* Ocamlformat_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:(Ocamlformat_parser_extended.Parser.token -> Ocamlformat_stdlib.bool) ->
Lexing.position ->
Lexing.position ->
(Ocamlformat_parser_extended.Parser.token
* Ocamlformat_ocaml_common.Location.t)
Ocamlformat_stdlib.listval find_token_after :
t ->
filter:(Ocamlformat_parser_extended.Parser.token -> Ocamlformat_stdlib.bool) ->
Lexing.position ->
(Ocamlformat_parser_extended.Parser.token
* Ocamlformat_ocaml_common.Location.t)
Ocamlformat_stdlib.optionval find_token_before :
t ->
filter:(Ocamlformat_parser_extended.Parser.token -> Ocamlformat_stdlib.bool) ->
Lexing.position ->
(Ocamlformat_parser_extended.Parser.token
* Ocamlformat_ocaml_common.Location.t)
Ocamlformat_stdlib.optionval string_literal :
t ->
[ `Normalize | `Preserve ] ->
Ocamlformat_ocaml_common.Location.t ->
Ocamlformat_stdlib.stringval begins_line :
?ignore_spaces:Ocamlformat_stdlib.bool ->
t ->
Ocamlformat_ocaml_common.Location.t ->
Ocamlformat_stdlib.boolval extension_using_sugar :
name:Ocamlformat_stdlib.string Ocamlformat_ocaml_common.Location.loc ->
payload:Ocamlformat_ocaml_common.Location.t ->
Ocamlformat_stdlib.boolval extend_loc_to_include_attributes :
Ocamlformat_ocaml_common.Location.t ->
Extended_ast.attributes ->
Ocamlformat_ocaml_common.Location.tval type_constraint_is_first :
Extended_ast.core_type ->
Ocamlformat_ocaml_common.Location.t ->
Ocamlformat_stdlib.boolval loc_of_first_token_at :
t ->
Ocamlformat_ocaml_common.Location.t ->
Ocamlformat_parser_extended.Parser.token ->
Ocamlformat_ocaml_common.Location.t Ocamlformat_stdlib.optionval find_first_token_on_line :
t ->
Ocamlformat_stdlib.int ->
(Ocamlformat_parser_extended.Parser.token
* Ocamlformat_ocaml_common.Location.t)
Ocamlformat_stdlib.option