package ocamlformat-mlx-lib
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=4557bcca3d2bd2b6d37b046a84a82a1bed83e46e45e363c0b209d30d70c0ec77
sha512=2802651c733bf3535ce9d2e4e533729da75b17e9507d911f4d79d1a68f35ddfb82db1daf8815a46d57a9937dea5b5466d523739c217ace0e446738208037ec2d
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.