Expect the root node.
(emitter *yaml_emitter_t, event *yaml_event_t)
| 480 | |
| 481 | // Expect the root node. |
| 482 | func yaml_emitter_emit_document_content(emitter *yaml_emitter_t, event *yaml_event_t) bool { |
| 483 | emitter.states = append(emitter.states, yaml_EMIT_DOCUMENT_END_STATE) |
| 484 | |
| 485 | if !yaml_emitter_process_head_comment(emitter) { |
| 486 | return false |
| 487 | } |
| 488 | if !yaml_emitter_emit_node(emitter, event, true, false, false, false) { |
| 489 | return false |
| 490 | } |
| 491 | if !yaml_emitter_process_line_comment(emitter) { |
| 492 | return false |
| 493 | } |
| 494 | if !yaml_emitter_process_foot_comment(emitter) { |
| 495 | return false |
| 496 | } |
| 497 | return true |
| 498 | } |
| 499 | |
| 500 | // Expect DOCUMENT-END. |
| 501 | func yaml_emitter_emit_document_end(emitter *yaml_emitter_t, event *yaml_event_t) bool { |
no test coverage detected