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