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

Method FlowMapPrepareLongKey

lib/yamlcpp/src/emitter.cpp:410–439  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

408}
409
410void Emitter::FlowMapPrepareLongKey(EmitterNodeType::value child) {
411 const std::size_t lastIndent = m_pState->LastIndent();
412
413 if (!m_pState->HasBegunNode()) {
414 if (m_stream.comment())
415 m_stream << "\n";
416 m_stream << IndentTo(lastIndent);
417 if (m_pState->CurGroupChildCount() == 0)
418 m_stream << "{ ?";
419 else
420 m_stream << ", ?";
421 }
422
423 switch (child) {
424 case EmitterNodeType::NoType:
425 break;
426 case EmitterNodeType::Property:
427 case EmitterNodeType::Scalar:
428 case EmitterNodeType::FlowSeq:
429 case EmitterNodeType::FlowMap:
430 SpaceOrIndentTo(
431 m_pState->HasBegunContent() || m_pState->CurGroupChildCount() > 0,
432 lastIndent);
433 break;
434 case EmitterNodeType::BlockSeq:
435 case EmitterNodeType::BlockMap:
436 assert(false);
437 break;
438 }
439}
440
441void Emitter::FlowMapPrepareLongKeyValue(EmitterNodeType::value child) {
442 const std::size_t lastIndent = m_pState->LastIndent();

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected