Lines Matching refs:parent
40 * crucial that 'parent' is the first member of the
47 AstNode *parent;
67 AstNode* ast_new(AstNode *parent, int index, const char *prefix, void *ptr, void (*expand)(AstNode*));
71 AstNode* ast_append_child(AstNode *parent, const char *text,
75 AstNode *child = ast_new(parent, parent->childnodes->len,
77 g_array_append_val(parent->childnodes, child);
84 void ast_append_attribute(AstNode *parent, const char *text)
86 AstNode *child = ast_new(parent, parent->childnodes->len, text, NULL, NULL);
87 g_array_append_val(parent->childnodes, child);