improve span accuracy during parsing #6072
Labels
domain: vrl
Anything related to the Vector Remap Language
type: enhancement
A value-adding code change that enhances its existing functionality.
Once #6023 is merged, VRL will have its first batch of diagnostic messages.
While the initial batch is "good enough", there's more we can do.
Take there two examples:
While they are useable, the span ranges aren't as specific as I'd like.
For example, in the first one, I'd rather have the span point to
err
specifically. And for the second one it should point to thefoo
keyword.This is mostly a matter of slicing up our parse functions into smaller sections that only parse one specific part, and then encode the span of that part in their result. We're close to that goal, but this issue can track the progress to resolving the above to cases, and any others where more fine-grained span information would improve the diagnostic.
The text was updated successfully, but these errors were encountered: