| 585 | } |
| 586 | |
| 587 | void Emitter::BlockMapPrepareLongKeyValue(EmitterNodeType::value child) { |
| 588 | const std::size_t curIndent = m_pState->CurIndent(); |
| 589 | |
| 590 | if (child == EmitterNodeType::NoType) |
| 591 | return; |
| 592 | |
| 593 | if (!m_pState->HasBegunContent()) { |
| 594 | m_stream << "\n"; |
| 595 | m_stream << IndentTo(curIndent); |
| 596 | m_stream << ":"; |
| 597 | } |
| 598 | |
| 599 | switch (child) { |
| 600 | case EmitterNodeType::NoType: |
| 601 | break; |
| 602 | case EmitterNodeType::Property: |
| 603 | case EmitterNodeType::Scalar: |
| 604 | case EmitterNodeType::FlowSeq: |
| 605 | case EmitterNodeType::FlowMap: |
| 606 | SpaceOrIndentTo(true, curIndent + 1); |
| 607 | break; |
| 608 | case EmitterNodeType::BlockSeq: |
| 609 | case EmitterNodeType::BlockMap: |
| 610 | if (m_pState->HasBegunContent()) |
| 611 | m_stream << "\n"; |
| 612 | SpaceOrIndentTo(true, curIndent + 1); |
| 613 | break; |
| 614 | } |
| 615 | } |
| 616 | |
| 617 | void Emitter::BlockMapPrepareSimpleKey(EmitterNodeType::value child) { |
| 618 | const std::size_t curIndent = m_pState->CurIndent(); |
nothing calls this directly
no test coverage detected