Expect MAPPING-START.
(emitter *yaml_emitter_t, event *yaml_event_t)
| 928 | |
| 929 | // Expect MAPPING-START. |
| 930 | func yaml_emitter_emit_mapping_start(emitter *yaml_emitter_t, event *yaml_event_t) bool { |
| 931 | if !yaml_emitter_process_anchor(emitter) { |
| 932 | return false |
| 933 | } |
| 934 | if !yaml_emitter_process_tag(emitter) { |
| 935 | return false |
| 936 | } |
| 937 | if emitter.flow_level > 0 || emitter.canonical || event.mapping_style() == yaml_FLOW_MAPPING_STYLE || |
| 938 | yaml_emitter_check_empty_mapping(emitter) { |
| 939 | emitter.state = yaml_EMIT_FLOW_MAPPING_FIRST_KEY_STATE |
| 940 | } else { |
| 941 | emitter.state = yaml_EMIT_BLOCK_MAPPING_FIRST_KEY_STATE |
| 942 | } |
| 943 | return true |
| 944 | } |
| 945 | |
| 946 | // Check if the document content is an empty scalar. |
| 947 | func yaml_emitter_check_empty_document(emitter *yaml_emitter_t) bool { |
no test coverage detected