Helper method to create an optional ConfigValueLocation from a ConfigOrigin.
Helper method to create an optional ConfigValueLocation from a ConfigOrigin. Since it might not be possible to derive a ConfigValueLocation from a ConfigOrigin, this method returns Option.
the ConfigOrigin to derive the location from
a Some with the location of the ConfigOrigin, or None if it is not possible to derive a location. It is not possible to derive locations from ConfigOrigin that are not in files or for ConfigOrigin that are null.
Helper method to create an optional ConfigValueLocation from a ConfigValue.
Helper method to create an optional ConfigValueLocation from a ConfigValue. Since it might not be possible to derive a ConfigValueLocation from a ConfigValue, this method returns Option.
the ConfigValue to derive the location from
a Some with the location of the ConfigValue, or None if it is not possible to derive a location. It is not possible to derive locations from ConfigValues that are not in files or for ConfigValues that are null.