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

Function yaml_emitter_write_indicator

emitterc.go:1517–1530  ·  emitterc.go::yaml_emitter_write_indicator
(emitter *yaml_emitter_t, indicator []byte, need_whitespace, is_whitespace, is_indention bool)

Source from the content-addressed store, hash-verified

1515}
1516
1517func yaml_emitter_write_indicator(emitter *yaml_emitter_t, indicator []byte, need_whitespace, is_whitespace, is_indention bool) bool {
1518 if need_whitespace && !emitter.whitespace {
1519 if !put(emitter, ' ') {
1520 return false
1521 }
1522 }
1523 if !write_all(emitter, indicator) {
1524 return false
1525 }
1526 emitter.whitespace = is_whitespace
1527 emitter.indention = (emitter.indention && is_indention)
1528 emitter.open_ended = false
1529 return true
1530}
1531
1532func yaml_emitter_write_anchor(emitter *yaml_emitter_t, value []byte) bool {
1533 if !write_all(emitter, value) {

Calls 2

putFunction · 0.85
write_allFunction · 0.85

Tested by

no test coverage detected