lightbend / config

configuration library for JVM languages using HOCON files
https://lightbend.github.io/config/
6.12k stars 968 forks source link

Get the line/pos information from a ConfigObject #771

Open k3rnL opened 2 years ago

k3rnL commented 2 years ago

Is there a way to get the line/pos infomration from any config node ?

By digging a bit I saw a DoucmentParser that keeps the metadata from the parsing stage, but I don't see a way to get them.

thanks

mikehearn commented 1 year ago

Look at the ConfigOrigin object available via the origin() method.