this is sort of a hack; we want to preserve whether whitespace was quoted until we process substitutions, so we can ignore unquoted whitespace when concatenating lists or objects. We dump this distinction when serializing and deserializing, but that 's OK because it isn' t in equals/hashCode, and we don 't allow serializing unresolved objects which is where quoted-ness matters. If we later make ConfigOrigin point to the original token range, we could use that to implement wasQuoted()
# File lib/hocon/impl/config_string.rb, line 41 def initialize(origin, value) super(origin, value) end
# File lib/hocon/impl/config_string.rb, line 45 def new_copy(origin) self.class.new(origin, @value) end
# File lib/hocon/impl/config_string.rb, line 49 def write_replace Hocon::Impl::SerializedConfigValue.new(self) end