| 193 | } |
| 194 | |
| 195 | void TYsonWriter::EndCollection(ETokenType endToken) { |
| 196 | --Depth; |
| 197 | if (Format == EYsonFormat::Pretty && !BeforeFirstItem) { |
| 198 | Stream->Write('\n'); |
| 199 | WriteIndent(); |
| 200 | } |
| 201 | Stream->Write(TokenTypeToChar(endToken)); |
| 202 | BeforeFirstItem = false; |
| 203 | } |
| 204 | |
| 205 | void TYsonWriter::WriteStringScalar(const TStringBuf& value) { |
| 206 | if (Format == EYsonFormat::Binary) { |
nothing calls this directly
no test coverage detected