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

Method EndNode

library/cpp/yson/writer.cpp:161–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

159 }
160
161 void TYsonWriter::EndNode() {
162 if (IsTopLevelFragmentContext()) {
163 ETokenType separatorToken =
164 Type == ::NYson::EYsonType::ListFragment
165 ? ListItemSeparatorToken
166 : KeyedItemSeparatorToken;
167 Stream->Write(TokenTypeToChar(separatorToken));
168 if (Format == EYsonFormat::Text || Format == EYsonFormat::Pretty) {
169 Stream->Write('\n');
170 }
171 }
172 }
173
174 void TYsonWriter::BeginCollection(ETokenType beginToken) {
175 Stream->Write(TokenTypeToChar(beginToken));

Callers

nothing calls this directly

Calls 2

TokenTypeToCharFunction · 0.85
WriteMethod · 0.45

Tested by

no test coverage detected