| 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)); |
nothing calls this directly
no test coverage detected