| 93 | } |
| 94 | |
| 95 | void TUnstrictConfig::ToJsonPatch(const Section& section, NJson::TJsonValue& result, const TString& preffix) { |
| 96 | const TString& newPreffix = preffix ? preffix + "." : TString(); |
| 97 | for (const auto& i : section.GetDirectives()) |
| 98 | result.InsertValue(newPreffix + i.first, i.second); |
| 99 | TSectionsMap children = section.GetAllChildren(); |
| 100 | for (TSectionsMap::const_iterator i = children.begin(), e = children.end(); i != e; ++i) |
| 101 | ToJsonPatch(*i->second, result, newPreffix + i->first); |
| 102 | } |
| 103 | |
| 104 | bool TUnstrictConfig::OnBeginSection(Section& sec) { |
| 105 | sec.Cookie = new AnyDirectives; |
nothing calls this directly
no test coverage detected