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

Method OnKeyedItem

library/cpp/yson/writer.cpp:288–302  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

286 }
287
288 void TYsonWriter::OnKeyedItem(TStringBuf key) {
289 CollectionItem(KeyedItemSeparatorToken);
290
291 WriteStringScalar(key);
292
293 if (Format == NYson::EYsonFormat::Pretty) {
294 Stream->Write(' ');
295 }
296 Stream->Write(TokenTypeToChar(KeyValueSeparatorToken));
297 if (Format == NYson::EYsonFormat::Pretty) {
298 Stream->Write(' ');
299 }
300
301 BeforeFirstItem = false;
302 }
303
304 void TYsonWriter::OnEndMap() {
305 EndCollection(EndMapToken);

Callers 5

ParseKeyMethod · 0.45
AddEventMethod · 0.45
BeginEventMethod · 0.45
WriteArgsMethod · 0.45
WriteFlowMethod · 0.45

Calls 2

TokenTypeToCharFunction · 0.85
WriteMethod · 0.45

Tested by

no test coverage detected