| 459 | } |
| 460 | |
| 461 | static int |
| 462 | yaml_parser_load_sequence_end(yaml_parser_t *parser, yaml_event_t *event, |
| 463 | struct loader_ctx *ctx) |
| 464 | { |
| 465 | int index; |
| 466 | |
| 467 | assert(((*ctx).top - (*ctx).start) > 0); |
| 468 | |
| 469 | index = *((*ctx).top - 1); |
| 470 | assert(parser->document->nodes.start[index-1].type == YAML_SEQUENCE_NODE); |
| 471 | parser->document->nodes.start[index-1].end_mark = event->end_mark; |
| 472 | |
| 473 | (void)POP(parser, *ctx); |
| 474 | |
| 475 | return 1; |
| 476 | } |
| 477 | |
| 478 | /* |
| 479 | * Compose a mapping node. |
no outgoing calls
no test coverage detected