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

Method FlowMapPrepareLongKeyValue

lib/yamlcpp/src/emitter.cpp:441–467  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

439}
440
441void Emitter::FlowMapPrepareLongKeyValue(EmitterNodeType::value child) {
442 const std::size_t lastIndent = m_pState->LastIndent();
443
444 if (!m_pState->HasBegunNode()) {
445 if (m_stream.comment())
446 m_stream << "\n";
447 m_stream << IndentTo(lastIndent);
448 m_stream << ":";
449 }
450
451 switch (child) {
452 case EmitterNodeType::NoType:
453 break;
454 case EmitterNodeType::Property:
455 case EmitterNodeType::Scalar:
456 case EmitterNodeType::FlowSeq:
457 case EmitterNodeType::FlowMap:
458 SpaceOrIndentTo(
459 m_pState->HasBegunContent() || m_pState->CurGroupChildCount() > 0,
460 lastIndent);
461 break;
462 case EmitterNodeType::BlockSeq:
463 case EmitterNodeType::BlockMap:
464 assert(false);
465 break;
466 }
467}
468
469void Emitter::FlowMapPrepareSimpleKey(EmitterNodeType::value child) {
470 const std::size_t lastIndent = m_pState->LastIndent();

Callers

nothing calls this directly

Calls 5

IndentToClass · 0.85
LastIndentMethod · 0.80
HasBegunNodeMethod · 0.80
HasBegunContentMethod · 0.80
CurGroupChildCountMethod · 0.80

Tested by

no test coverage detected