Searched refs:childnodes (Results 1 – 2 of 2) sorted by relevance
/illumos-gate/usr/src/tools/smatch/src/ |
H A D | ast-model.h | 52 GArray *childnodes; member 75 AstNode *child = ast_new(parent, parent->childnodes->len, in ast_append_child() 77 g_array_append_val(parent->childnodes, child); in ast_append_child() 86 AstNode *child = ast_new(parent, parent->childnodes->len, text, NULL, NULL); in ast_append_attribute() 87 g_array_append_val(parent->childnodes, child); in ast_append_attribute()
|
H A D | ast-model.c | 61 if (n >= node->childnodes->len) in ast_nth_child() 63 return g_array_index(node->childnodes, AstNode *, n); in ast_nth_child() 179 node->childnodes = g_array_new(FALSE, TRUE, sizeof(AstNode *)); in ast_init() 384 return node->childnodes->len > 0; in ast_iter_has_child() 408 return node->childnodes->len; in ast_iter_n_children() 430 GArray *array = node->childnodes; in ast_iter_nth_child()
|