| 529 | } |
| 530 | |
| 531 | void Emitter::BlockMapPrepareNode(EmitterNodeType::value child) { |
| 532 | if (m_pState->CurGroupChildCount() % 2 == 0) { |
| 533 | if (m_pState->GetMapKeyFormat() == LongKey) |
| 534 | m_pState->SetLongKey(); |
| 535 | if (child == EmitterNodeType::BlockSeq || |
| 536 | child == EmitterNodeType::BlockMap || |
| 537 | child == EmitterNodeType::Property) |
| 538 | m_pState->SetLongKey(); |
| 539 | |
| 540 | if (m_pState->CurGroupLongKey()) |
| 541 | BlockMapPrepareLongKey(child); |
| 542 | else |
| 543 | BlockMapPrepareSimpleKey(child); |
| 544 | } else { |
| 545 | if (m_pState->CurGroupLongKey()) |
| 546 | BlockMapPrepareLongKeyValue(child); |
| 547 | else |
| 548 | BlockMapPrepareSimpleKeyValue(child); |
| 549 | } |
| 550 | } |
| 551 | |
| 552 | void Emitter::BlockMapPrepareLongKey(EmitterNodeType::value child) { |
| 553 | const std::size_t curIndent = m_pState->CurIndent(); |
nothing calls this directly
no test coverage detected