# File lib/puppet/external/pson/pure/generator.rb, line 208
208:           def to_pson(state = nil, depth = 0, *)
209:             if state
210:               state = PSON.state.from_state(state)
211:               state.check_max_nesting(depth)
212:               pson_check_circular(state) { pson_transform(state, depth) }
213:             else
214:               pson_transform(state, depth)
215:             end
216:           end