MCPcopy Create free account
hub / github.com/apache/trafficserver / BlockMapPrepareSimpleKey

Method BlockMapPrepareSimpleKey

lib/yamlcpp/src/emitter.cpp:617–643  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

615}
616
617void 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
645void Emitter::BlockMapPrepareSimpleKeyValue(EmitterNodeType::value child) {
646 const std::size_t curIndent = m_pState->CurIndent();

Callers

nothing calls this directly

Calls 4

CurIndentMethod · 0.80
CurGroupChildCountMethod · 0.80
HasBegunNodeMethod · 0.80
HasBegunContentMethod · 0.80

Tested by

no test coverage detected