• Home
  • Raw
  • Download

Lines Matching full:children

75 	tree->children				= NULL;  in antlr3BaseTreeNew()
101 if (tree->children != NULL) in getFirstChildWithType()
103 cs = tree->children->size(tree->children); in getFirstChildWithType()
106 t = (pANTLR3_BASE_TREE) (tree->children->get(tree->children, i)); in getFirstChildWithType()
121 if ( tree->children == NULL in getChild()
122 || i >= tree->children->size(tree->children)) in getChild()
126 return tree->children->get(tree->children, i); in getChild()
133 if (tree->children == NULL) in getChildCount()
139 return tree->children->size(tree->children); in getChildCount()
156 if (child->children != NULL && child->children == tree->children) in addChild()
164 // Add all of the children's children to this list in addChild()
166 if (child->children != NULL) in addChild()
168 if (tree->children == NULL) in addChild()
173 // copy in the child's children pointer as the child is in addChild()
176 tree->children = child->children; in addChild()
177 child->children = NULL; in addChild()
183 // Need to copy the children in addChild()
185 n = child->children->size(child->children); in addChild()
190 entry = child->children->get(child->children, i); in addChild()
196 … tree->children->add(tree->children, entry, (void (ANTLR3_CDECL *) (void *))child->free); in addChild()
204 // Tree we are adding is not a Nil and might have children to copy in addChild()
206 if (tree->children == NULL) in addChild()
208 // No children in the tree we are adding to, so create a new list on in addChild()
214 tree->children->add(tree->children, child, (void (ANTLR3_CDECL *)(void *))child->free); in addChild()
219 /// Add all elements of the supplied list as children of this node
238 if (tree->children == NULL) in setChild()
242 tree->children->set(tree->children, i, child, NULL, ANTLR3_FALSE); in setChild()
248 if ( tree->children == NULL) in deleteChild()
253 return tree->children->remove(tree->children, i); in deleteChild()
265 if (tree->children != NULL) in dupTree()
267 s = tree->children->size (tree->children); in dupTree()
274 t = (pANTLR3_BASE_TREE) tree->children->get(tree->children, i); in dupTree()
295 if (tree->children == NULL || tree->children->size(tree->children) == 0) in toStringTree()
310 if (tree->children != NULL) in toStringTree()
312 n = tree->children->size(tree->children); in toStringTree()
316 t = (pANTLR3_BASE_TREE) tree->children->get(tree->children, i); in toStringTree()
333 /// Delete children from start to stop and replace with t even if t is
334 /// a list (nil-root tree). Num of children can increase or decrease.
335 /// For huge child lists, inserting children can force walking rest of
336 /// children to set their child index; could be slow.
352 if (parent->children == NULL) in replaceChildren()
354 …ANTLR3_FPRINTF(stderr, "replaceChildren call: Indexes are invalid; no children in list for %s", pa… in replaceChildren()
358 // Either use the existing list of children in the supplied nil node, or build a vector of the in replaceChildren()
363 newChildren = newTree->children; in replaceChildren()
398 parent->children->set(parent->children, i, child, NULL, ANTLR3_FALSE); in replaceChildren()
412 …parent->children->set(parent->children, startChildIndex + j, newChildren->get(newChildren, j), NUL… in replaceChildren()
421 parent->children->remove(parent->children, indexToDelete); in replaceChildren()
435 …parent->children->set(parent->children, startChildIndex + j, newChildren->get(newChildren, j), NUL… in replaceChildren()
442 parent->children->add(parent->children, newChildren->get(newChildren, j), NULL); in replaceChildren()
457 /// Set the parent and child indexes for all children of the
466 /// Set the parent and child indexes for some of the children of the
475 count = tree->getChildCount(tree); // How many children do we have in freshenPACIndexes()