Skip to main content

Module source

Module source 

Source

Structs§

SpanIndex
Precomputed line-start byte offsets. The line is found in O(log n) (binary search over the line starts); the 1-based char column is then O(line length) (chars().count() over the line prefix, so multi-byte chars count as one).

Functions§

lambda_anchors
(line, 1-based char col) of each lambda keyword token, in source order.
strip_bom
Strip a leading UTF-8 BOM (\u{feff}) from src, if present.