Expect SEQUENCE-START.
(emitter *yaml_emitter_t, event *yaml_event_t)
| 911 | |
| 912 | // Expect SEQUENCE-START. |
| 913 | func yaml_emitter_emit_sequence_start(emitter *yaml_emitter_t, event *yaml_event_t) bool { |
| 914 | if !yaml_emitter_process_anchor(emitter) { |
| 915 | return false |
| 916 | } |
| 917 | if !yaml_emitter_process_tag(emitter) { |
| 918 | return false |
| 919 | } |
| 920 | if emitter.flow_level > 0 || emitter.canonical || event.sequence_style() == yaml_FLOW_SEQUENCE_STYLE || |
| 921 | yaml_emitter_check_empty_sequence(emitter) { |
| 922 | emitter.state = yaml_EMIT_FLOW_SEQUENCE_FIRST_ITEM_STATE |
| 923 | } else { |
| 924 | emitter.state = yaml_EMIT_BLOCK_SEQUENCE_FIRST_ITEM_STATE |
| 925 | } |
| 926 | return true |
| 927 | } |
| 928 | |
| 929 | // Expect MAPPING-START. |
| 930 | func yaml_emitter_emit_mapping_start(emitter *yaml_emitter_t, event *yaml_event_t) bool { |
no test coverage detected