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

Function yaml_document_get_node

xs/tools/yaml/api.c:1189–1198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1187 */
1188
1189YAML_DECLARE(yaml_node_t *)
1190yaml_document_get_node(yaml_document_t *document, int index)
1191{
1192 assert(document); /* Non-NULL document object is expected. */
1193
1194 if (index > 0 && document->nodes.start + index <= document->nodes.top) {
1195 return document->nodes.start + index - 1;
1196 }
1197 return NULL;
1198}
1199
1200/**
1201 * Get the root object.

Callers 5

fxGetMappingValueFunction · 0.85
fxGetMappingValueFunction · 0.85
fxRunContextFunction · 0.85
fxRunTestCaseFunction · 0.85

Calls 1

assertFunction · 0.50

Tested by 2

fxGetMappingValueFunction · 0.68