Home | History | Annotate | Download | only in lib2to3

Lines Matching refs:child

192         for i, child in enumerate(self.parent.children):
193 if child is self:
209 for i, child in enumerate(self.parent.children):
210 if child is self:
216 for child in self.children:
217 for x in child.leaves():
251 child nodes, and an optional context keyword argument.
296 for child in self.children:
297 for node in child.post_order():
304 for child in self.children:
305 for node in child.pre_order():
322 def set_child(self, i, child):
324 Equivalent to 'node.children[i] = child'. This method also sets the
325 child's parent attribute appropriately.
327 child.parent = self
329 self.children[i] = child
332 def insert_child(self, i, child):
334 Equivalent to 'node.children.insert(i, child)'. This method also sets
335 the child's parent attribute appropriately.
337 child.parent = self
338 self.children.insert(i, child)
341 def append_child(self, child):
343 Equivalent to 'node.children.append(child)'. This method also sets the
344 child's parent attribute appropriately.
346 child.parent = self
347 self.children.append(child)
439 # If there's exactly one child, return that child instead of
633 for subpattern, child in zip(self.content, node.children):
634 if not subpattern.match(child, results):