MCPcopy Create free account
hub / github.com/catboost/catboost / OnClose

Method OnClose

library/cpp/json/json_prettifier.cpp:224–239  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

222 }
223
224 bool OnClose(char c) {
225 if (!Level) {
226 return false;
227 }
228
229 Level--;
230
231 if (Out.Dirty && c == Out.Last) {
232 WriteSpace(' ');
233 } else {
234 Out.Revert();
235 Pad(true);
236 }
237
238 return true;
239 }
240
241 bool OnCloseMap() override {
242 if (!OnClose('{')) {

Callers

nothing calls this directly

Calls 2

PadFunction · 0.85
RevertMethod · 0.80

Tested by

no test coverage detected