| 149 | } |
| 150 | |
| 151 | void TYsonWriter::WriteIndent() { |
| 152 | for (int i = 0; i < IndentSize * Depth; ++i) { |
| 153 | Stream->Write(' '); |
| 154 | } |
| 155 | } |
| 156 | |
| 157 | bool TYsonWriter::IsTopLevelFragmentContext() const { |
| 158 | return Depth == 0 && (Type == ::NYson::EYsonType::ListFragment || Type == ::NYson::EYsonType::MapFragment); |