Lines Matching refs:node
46 yaml_emitter_dump_scalar(yaml_emitter_t *emitter, yaml_node_t *node,
50 yaml_emitter_dump_sequence(yaml_emitter_t *emitter, yaml_node_t *node,
54 yaml_emitter_dump_mapping(yaml_emitter_t *emitter, yaml_node_t *node,
179 yaml_node_t node = emitter->document->nodes.start[index]; in yaml_emitter_delete_document_and_anchors() local
181 yaml_free(node.tag); in yaml_emitter_delete_document_and_anchors()
182 if (node.type == YAML_SCALAR_NODE) { in yaml_emitter_delete_document_and_anchors()
183 yaml_free(node.data.scalar.value); in yaml_emitter_delete_document_and_anchors()
186 if (node.type == YAML_SEQUENCE_NODE) { in yaml_emitter_delete_document_and_anchors()
187 STACK_DEL(emitter, node.data.sequence.items); in yaml_emitter_delete_document_and_anchors()
189 if (node.type == YAML_MAPPING_NODE) { in yaml_emitter_delete_document_and_anchors()
190 STACK_DEL(emitter, node.data.mapping.pairs); in yaml_emitter_delete_document_and_anchors()
209 yaml_node_t *node = emitter->document->nodes.start + index - 1; in yaml_emitter_anchor_node() local
216 switch (node->type) { in yaml_emitter_anchor_node()
218 for (item = node->data.sequence.items.start; in yaml_emitter_anchor_node()
219 item < node->data.sequence.items.top; item ++) { in yaml_emitter_anchor_node()
224 for (pair = node->data.mapping.pairs.start; in yaml_emitter_anchor_node()
225 pair < node->data.mapping.pairs.top; pair ++) { in yaml_emitter_anchor_node()
266 yaml_node_t *node = emitter->document->nodes.start + index - 1; in yaml_emitter_dump_node() local
281 switch (node->type) { in yaml_emitter_dump_node()
283 return yaml_emitter_dump_scalar(emitter, node, anchor); in yaml_emitter_dump_node()
285 return yaml_emitter_dump_sequence(emitter, node, anchor); in yaml_emitter_dump_node()
287 return yaml_emitter_dump_mapping(emitter, node, anchor); in yaml_emitter_dump_node()
316 yaml_emitter_dump_scalar(yaml_emitter_t *emitter, yaml_node_t *node, in yaml_emitter_dump_scalar() argument
322 int plain_implicit = (strcmp((char *)node->tag, in yaml_emitter_dump_scalar()
324 int quoted_implicit = (strcmp((char *)node->tag, in yaml_emitter_dump_scalar()
327 SCALAR_EVENT_INIT(event, anchor, node->tag, node->data.scalar.value, in yaml_emitter_dump_scalar()
328 node->data.scalar.length, plain_implicit, quoted_implicit, in yaml_emitter_dump_scalar()
329 node->data.scalar.style, mark, mark); in yaml_emitter_dump_scalar()
339 yaml_emitter_dump_sequence(yaml_emitter_t *emitter, yaml_node_t *node, in yaml_emitter_dump_sequence() argument
345 int implicit = (strcmp((char *)node->tag, YAML_DEFAULT_SEQUENCE_TAG) == 0); in yaml_emitter_dump_sequence()
349 SEQUENCE_START_EVENT_INIT(event, anchor, node->tag, implicit, in yaml_emitter_dump_sequence()
350 node->data.sequence.style, mark, mark); in yaml_emitter_dump_sequence()
353 for (item = node->data.sequence.items.start; in yaml_emitter_dump_sequence()
354 item < node->data.sequence.items.top; item ++) { in yaml_emitter_dump_sequence()
369 yaml_emitter_dump_mapping(yaml_emitter_t *emitter, yaml_node_t *node, in yaml_emitter_dump_mapping() argument
375 int implicit = (strcmp((char *)node->tag, YAML_DEFAULT_MAPPING_TAG) == 0); in yaml_emitter_dump_mapping()
379 MAPPING_START_EVENT_INIT(event, anchor, node->tag, implicit, in yaml_emitter_dump_mapping()
380 node->data.mapping.style, mark, mark); in yaml_emitter_dump_mapping()
383 for (pair = node->data.mapping.pairs.start; in yaml_emitter_dump_mapping()
384 pair < node->data.mapping.pairs.top; pair ++) { in yaml_emitter_dump_mapping()