package grace
A fancy diagnostics library that allows your compilers to exit with grace
Install
Dune Dependency
Authors
Maintainers
Sources
grace-0.2.0.tbz
sha256=821df54882c9253eac69f47bcf3a71ffdc61c77fdae42587c32aada5b56cfeae
sha512=007afa83251da3ddecd874e120ea89dce0253c387a64a5fece69069d3486ec5eb6c82d6bf0febaf23dd322bd9eaadc2f7882e33f05a2e1fa18a41294e7dc3ba1
doc/grace.source_reader/Grace_source_reader/Line/index.html
Module Grace_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)"
>