package grace
A fancy diagnostics library that allows your compilers to exit with grace
Install
Dune Dependency
Authors
Maintainers
Sources
grace-0.1.0.tbz
sha256=19576d3f32e4a69c7ebad26a801b568a2e3bff24a0e4d5ddf3b8bf4eac479d4c
sha512=436db3699126eec797da1be9f530759547804cc081ed365a75ba8ae9b053c05999ae820d294dd20f6a68e0712084579c585105a3855d71b459efc1367172bd66
doc/grace.rendering/Grace_rendering/Source_reader/Line/index.html
Module Source_reader.Line
Source
The type of a line.
of_line_index sd idx
returns the line at index idx
in source sd
.
of_byte_index sd idx
returns the line containing idx
in source sd
.
start t
returns the byte index of the (inclusive) start position of the line.
stop t
returns the byte index of the (exclusive) stop position of the line.
split t
returns the pair of byte indices of the line t
.
last sd
returns the last line in the source sd
.
slice t ~sd
reads the slice of bytes defined by the line's range
.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>