Lines Matching refs:parent
197 /* text after this element, in parent. note that this is a tagged
499 /* add a child element to a parent */
582 ElementObject* parent;
586 &Element_Type, &parent, &tag,
614 if (element_add_subelement(parent, elem) < 0) {
2057 * Each stack item contains the saved parent to which we should return after
2058 * the current one is exhausted, and the next child to examine in that parent.
2061 ElementObject *parent;
2084 Py_XDECREF(it->parent_stack[i].parent);
2098 Py_VISIT(it->parent_stack[i].parent);
2105 /* Helper function for elementiter_next. Add a new parent to the parent stack.
2108 parent_stack_push_new(ElementIterObject *it, ElementObject *parent)
2122 Py_INCREF(parent);
2123 item->parent = parent;
2148 * the parent stack is empty. If root_element is NULL and we're here, the
2161 /* See if there are children left to traverse in the current parent. If
2167 elem = item->parent;