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

Method FlowMapPrepareNode

lib/yamlcpp/src/emitter.cpp:393–408  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

391}
392
393void Emitter::FlowMapPrepareNode(EmitterNodeType::value child) {
394 if (m_pState->CurGroupChildCount() % 2 == 0) {
395 if (m_pState->GetMapKeyFormat() == LongKey)
396 m_pState->SetLongKey();
397
398 if (m_pState->CurGroupLongKey())
399 FlowMapPrepareLongKey(child);
400 else
401 FlowMapPrepareSimpleKey(child);
402 } else {
403 if (m_pState->CurGroupLongKey())
404 FlowMapPrepareLongKeyValue(child);
405 else
406 FlowMapPrepareSimpleKeyValue(child);
407 }
408}
409
410void Emitter::FlowMapPrepareLongKey(EmitterNodeType::value child) {
411 const std::size_t lastIndent = m_pState->LastIndent();

Callers

nothing calls this directly

Calls 4

CurGroupChildCountMethod · 0.80
GetMapKeyFormatMethod · 0.80
SetLongKeyMethod · 0.80
CurGroupLongKeyMethod · 0.80

Tested by

no test coverage detected