MCPcopy
hub / github.com/go-yaml/yaml / yaml_emitter_emit_document_content

Function yaml_emitter_emit_document_content

emitterc.go:482–498  ·  view source on GitHub ↗

Expect the root node.

(emitter *yaml_emitter_t, event *yaml_event_t)

Source from the content-addressed store, hash-verified

480
481// Expect the root node.
482func 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.
501func yaml_emitter_emit_document_end(emitter *yaml_emitter_t, event *yaml_event_t) bool {

Callers 1

Tested by

no test coverage detected