package ocamlformat-mlx-lib
Install
Dune Dependency
Authors
Maintainers
Sources
md5=4b32d3b57da54157a0cd8f772094f4bc
sha512=367eeb5d81060a3efb584796cc72cc75d974975bb9b18be6284a86f5937edb90927368fd80e00b3f4c1894e609b4a1503c20d4495c624560243e5055f905390a
doc/ocamlformat-mlx-lib.odoc_parser/Odoc_parser/Loc/index.html
Module 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.
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