Expand description
Byte offsets and QuickJS source-coordinate mapping.
Structs§
- Line
Column - A zero-based QuickJS debug line and column.
- Quick
JsSource Index - Source-owned coordinate index shared across all functions in one lowering. Construction is O(source bytes); each query scans at most 255 bytes after an O(1) checkpoint lookup. Storage is eight bytes per 256 source bytes, excluding Vec metadata/capacity. Long single-line sources remain bounded.
- Quick
JsSource Locator - Convert authoritative source-buffer byte offsets with pinned QuickJS’s
exact
get_line_colrules: LF is the only newline and bytes shaped like UTF-8 continuations do not advance the column. Raw parser inputs need not themselves be valid UTF-8. - Source
Offset - A byte offset into the original UTF-8 source buffer.
Enums§
- Debug
Metadata Error - Failures at the source-offset/debug-location boundary.