Lines Matching refs: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()
166 if (child->children != NULL) in addChild()
168 if (tree->children == NULL) in addChild()
176 tree->children = child->children; in addChild()
177 child->children = NULL; in addChild()
185 n = child->children->size(child->children); in addChild()
190 entry = (pANTLR3_BASE_TREE)child->children->get(child->children, i); in addChild()
196 …ANTLR3_UINT32 count = tree->children->add(tree->children, entry, (void (ANTLR3_CDECL *) (void *))c… in addChild()
209 if (tree->children == NULL) in addChild()
217 …ANTLR3_UINT32 count = tree->children->add(tree->children, child, (void (ANTLR3_CDECL *)(void *))ch… in addChild()
242 if (tree->children == NULL) in setChild()
246 tree->children->set(tree->children, i, child, NULL, ANTLR3_FALSE); in setChild()
252 if ( tree->children == NULL) in deleteChild()
257 return tree->children->remove(tree->children, i); in deleteChild()
269 if (tree->children != NULL) in dupTree()
271 s = tree->children->size (tree->children); in dupTree()
278 t = (pANTLR3_BASE_TREE) tree->children->get(tree->children, i); in dupTree()
299 if (tree->children == NULL || tree->children->size(tree->children) == 0) in toStringTree()
314 if (tree->children != NULL) in toStringTree()
316 n = tree->children->size(tree->children); in toStringTree()
320 t = (pANTLR3_BASE_TREE) tree->children->get(tree->children, i); in toStringTree()
356 if (parent->children == NULL) in replaceChildren()
367 newChildren = newTree->children; in replaceChildren()
402 parent->children->set(parent->children, i, child, NULL, ANTLR3_FALSE); in replaceChildren()
416 …parent->children->set(parent->children, startChildIndex + j, newChildren->get(newChildren, j), NUL… in replaceChildren()
425 parent->children->remove(parent->children, indexToDelete); in replaceChildren()
439 …parent->children->set(parent->children, startChildIndex + j, newChildren->get(newChildren, j), NUL… in replaceChildren()
446 parent->children->add(parent->children, newChildren->get(newChildren, j), NULL); in replaceChildren()