| 408 | } |
| 409 | |
| 410 | void 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 | |
| 441 | void Emitter::FlowMapPrepareLongKeyValue(EmitterNodeType::value child) { |
| 442 | const std::size_t lastIndent = m_pState->LastIndent(); |
nothing calls this directly
no test coverage detected