ion-rust icon indicating copy to clipboard operation
ion-rust copied to clipboard

Implement the support for location metadata in `LazyValue`

Open desaikd opened this issue 10 months ago • 0 comments

Location metadata can be pulled up to LazyValue from the underlying buffer. For binary implementations this will be None and for text implementations it will come from TextBuffer::row() and TextBuffer::column().

List of changes required for this implementation:

  • [ ] Modify LazyValue to add a property for location metadata
    • [ ] For binary Ion it would always be None
    • [ ] For text Ion get it from the buffer
    • [ ] Would require having a HasLocation trait similar to HasSpan and HasRange for different encodings (Ion 1.1 text, Ion 1.0 text, etc.) or adding an associated type to the Decoder
  • [ ] Write unit tests on LazyValue for location metadata

desaikd avatar Feb 17 '25 18:02 desaikd