Lines Matching refs:child
161 for i, child in enumerate(self.parent.children):
162 if child is self:
178 for i, child in enumerate(self.parent.children):
179 if child is self:
185 for child in self.children:
186 yield from child.leaves()
219 child nodes, and an optional context keyword argument.
264 for child in self.children:
265 yield from child.post_order()
271 for child in self.children:
272 yield from child.pre_order()
288 def set_child(self, i, child):
290 Equivalent to 'node.children[i] = child'. This method also sets the
291 child's parent attribute appropriately.
293 child.parent = self
295 self.children[i] = child
298 def insert_child(self, i, child):
300 Equivalent to 'node.children.insert(i, child)'. This method also sets
301 the child's parent attribute appropriately.
303 child.parent = self
304 self.children.insert(i, child)
307 def append_child(self, child):
309 Equivalent to 'node.children.append(child)'. This method also sets the
310 child's parent attribute appropriately.
312 child.parent = self
313 self.children.append(child)
405 # If there's exactly one child, return that child instead of
599 for subpattern, child in zip(self.content, node.children):
600 if not subpattern.match(child, results):