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

Function fxGetMappingValue

tools/xsbug/Test262Pane.c:43–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41};
42
43yaml_node_t *fxGetMappingValue(yaml_document_t* document, yaml_node_t* mapping, char* name)
44{
45 yaml_node_pair_t* pair = mapping->data.mapping.pairs.start;
46 while (pair < mapping->data.mapping.pairs.top) {
47 yaml_node_t* key = yaml_document_get_node(document, pair->key);
48 if (!strcmp((char*)key->data.scalar.value, name)) {
49 return yaml_document_get_node(document, pair->value);
50 }
51 pair++;
52 }
53 return NULL;
54}
55
56void Test262Context_getMetadata(xsMachine* the)
57{

Callers 1

Calls 1

yaml_document_get_nodeFunction · 0.85

Tested by

no test coverage detected