Module sidecar_document

Module sidecar_document 

Source
Expand description

Creation, parsing, validation and serialization of lossless sidecar documents.

Structs§

SidecarDocumentError
The JS boundary decodes this JSON string to retain any lone code units in diagnostics. Display remains usable by native callers with scalar strings.

Enums§

SidecarKind

Functions§

create_sidecar
Native scalar callers retain the existing input and error types.
create_sidecar_document
Normalize and validate without projecting JS strings through scalar-only JSON.
parse_ordered_json
Parse wire JSON while retaining JavaScript strings and enumeration order.
parse_sidecar
Syntax diagnostics are host-specific; structural diagnostics retain their order.
serialize_sidecar
validate_sidecar_document
Ordered JS diagnostics as a lossless JSON value, suitable for host decoding.