| 439 | } |
| 440 | |
| 441 | void 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 | |
| 469 | void Emitter::FlowMapPrepareSimpleKey(EmitterNodeType::value child) { |
| 470 | const std::size_t lastIndent = m_pState->LastIndent(); |
nothing calls this directly
no test coverage detected