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

Method CollectionItem

library/cpp/yson/writer.cpp:180–193  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

178 }
179
180 void TYsonWriter::CollectionItem(ETokenType separatorToken) {
181 if (!IsTopLevelFragmentContext()) {
182 if (!BeforeFirstItem) {
183 Stream->Write(TokenTypeToChar(separatorToken));
184 }
185
186 if (Format == EYsonFormat::Pretty) {
187 Stream->Write('\n');
188 WriteIndent();
189 }
190 }
191
192 BeforeFirstItem = false;
193 }
194
195 void TYsonWriter::EndCollection(ETokenType endToken) {
196 --Depth;

Callers

nothing calls this directly

Calls 2

TokenTypeToCharFunction · 0.85
WriteMethod · 0.45

Tested by

no test coverage detected