dcefc5ca24
This allows us to round-trip Body to JSON and back without any loss as long as the expression source codes are always valid UTF-8, and we require that during expression parsing anyway so that is a fine restriction. The JSON encoding is a little noisy to read due to the extra annotations required to be lossless (including source ranges) but still relatively compact due to the base64-VLQ encoding of the source location information. |
||
---|---|---|
.. | ||
didyoumean.go | ||
doc.go | ||
example_test.go | ||
expression_test.go | ||
expression.go | ||
exprsourcetype_string.go | ||
json_marshal_test.go | ||
json_marshal.go | ||
pack_native_test.go | ||
pack_native.go | ||
positions_packed.go | ||
structure_test.go | ||
structure.go | ||
vlq.go |