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

Function yaml_emitter_process_foot_comment

emitterc.go:1164–1180  ·  emitterc.go::yaml_emitter_process_foot_comment

Write a foot comment.

(emitter *yaml_emitter_t)

Source from the content-addressed store, hash-verified

1162
1163// Write a foot comment.
1164func yaml_emitter_process_foot_comment(emitter *yaml_emitter_t) bool {
1165 if len(emitter.foot_comment) == 0 {
1166 return true
1167 }
1168 if !yaml_emitter_write_indent(emitter) {
1169 return false
1170 }
1171 if !yaml_emitter_write_comment(emitter, emitter.foot_comment) {
1172 return false
1173 }
1174 emitter.foot_comment = emitter.foot_comment[:0]
1175 emitter.foot_indent = emitter.indent
1176 if emitter.foot_indent < 0 {
1177 emitter.foot_indent = 0
1178 }
1179 return true
1180}
1181
1182// Check if a %YAML directive is valid.
1183func yaml_emitter_analyze_version_directive(emitter *yaml_emitter_t, version_directive *yaml_version_directive_t) bool {

Calls 2

Tested by

no test coverage detected