MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / yaml_document_get_root_node

Function yaml_document_get_root_node

xs/tools/yaml/api.c:1204–1213  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1202 */
1203
1204YAML_DECLARE(yaml_node_t *)
1205yaml_document_get_root_node(yaml_document_t *document)
1206{
1207 assert(document); /* Non-NULL document object is expected. */
1208
1209 if (document->nodes.top != document->nodes.start) {
1210 return document->nodes.start;
1211 }
1212 return NULL;
1213}
1214
1215/*
1216 * Add a scalar node to a document.

Callers 3

fxRunContextFunction · 0.85
yaml.hFile · 0.85

Calls 1

assertFunction · 0.50

Tested by 1