Skip to main content

Module coordinates

Module coordinates 

Source
Expand description

Byte offsets and QuickJS source-coordinate mapping.

Structs§

LineColumn
A zero-based QuickJS debug line and column.
QuickJsSourceIndex
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.
QuickJsSourceLocator
Convert authoritative source-buffer byte offsets with pinned QuickJS’s exact get_line_col rules: 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.
SourceOffset
A byte offset into the original UTF-8 source buffer.

Enums§

DebugMetadataError
Failures at the source-offset/debug-location boundary.