| 615 | } |
| 616 | |
| 617 | void Emitter::BlockMapPrepareSimpleKey(EmitterNodeType::value child) { |
| 618 | const std::size_t curIndent = m_pState->CurIndent(); |
| 619 | const std::size_t childCount = m_pState->CurGroupChildCount(); |
| 620 | |
| 621 | if (child == EmitterNodeType::NoType) |
| 622 | return; |
| 623 | |
| 624 | if (!m_pState->HasBegunNode()) { |
| 625 | if (childCount > 0) { |
| 626 | m_stream << "\n"; |
| 627 | } |
| 628 | } |
| 629 | |
| 630 | switch (child) { |
| 631 | case EmitterNodeType::NoType: |
| 632 | break; |
| 633 | case EmitterNodeType::Property: |
| 634 | case EmitterNodeType::Scalar: |
| 635 | case EmitterNodeType::FlowSeq: |
| 636 | case EmitterNodeType::FlowMap: |
| 637 | SpaceOrIndentTo(m_pState->HasBegunContent(), curIndent); |
| 638 | break; |
| 639 | case EmitterNodeType::BlockSeq: |
| 640 | case EmitterNodeType::BlockMap: |
| 641 | break; |
| 642 | } |
| 643 | } |
| 644 | |
| 645 | void Emitter::BlockMapPrepareSimpleKeyValue(EmitterNodeType::value child) { |
| 646 | const std::size_t curIndent = m_pState->CurIndent(); |
nothing calls this directly
no test coverage detected