Skip to content

Get kdl property value span #141

@ggallovalle

Description

@ggallovalle

How can I reliably get the span of the actual property value.

I can rely on the following

  • entry.span() -> for the whole property span
  • entry.ty().unwrap().span() -> for the type annotation of the property value
  • entry.name().unwrap().span() -> for the property name

but the only thing that is missing is how to get the span corresponding to the value without all the KdlEntryFormat

For example right now I can't seem to reliably point to the value "hello" without all the fuss of the format

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions