package ocamlformat-mlx-lib
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=6a40faa182faee55f32bc92387b7e7f97818e160e0f4ef0e0032c0b8b70b86d1
sha512=7df487ebdcddff3529886e034fa9d5476c765c60926b11b8d86fb0e42bea3ee41f693c898e7f95bfc19ca9fa0116825c040a3e027c1e3b7505ebe6c6508540ec
doc/ocamlformat-mlx-lib.odoc_parser/Ocamlformat_odoc_parser/Loc/index.html
Module Ocamlformat_odoc_parser.Loc
Source
Locations in files.
This module concerns locations in source files, both points indicating a specific character and spans between two points.
Basic types
A specific character
A range of characters between start
and end_
in a particular file
span spans
takes a list of spans and returns a single span
starting at the start of the first span and ending at the end of the final span
This adjusts only the column number, implicitly assuming that the offset does not move the location across a newline character.
This adjusts only the column number, implicitly assuming that the offset does not move the location across a newline character.
Located values
Describes values located at a particular span
Constructor for with_location
Returns the location of a located value
Returns the value of a located value
Map over a located value without changing its location
same x y
retuns the value y wrapped in a with_location
whose location is that of x
spans_multiple_lines x
checks to see whether x
is located on a single line or whether it covers more than one.