| 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); |
no test coverage detected