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

Method BlockMapPrepareLongKeyValue

lib/yamlcpp/src/emitter.cpp:587–615  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

585}
586
587void 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
617void Emitter::BlockMapPrepareSimpleKey(EmitterNodeType::value child) {
618 const std::size_t curIndent = m_pState->CurIndent();

Callers

nothing calls this directly

Calls 3

IndentToClass · 0.85
CurIndentMethod · 0.80
HasBegunContentMethod · 0.80

Tested by

no test coverage detected