• Home
  • Raw
  • Download

Lines Matching full:children

46     children = ()  # Tuple of subnodes  variable in Base
140 for ch in self.parent.children:
142 assert not found, (self.parent.children, self, new)
148 assert found, (self.children, self, new)
150 self.parent.children = l_children
159 if not node.children:
161 node = node.children[0]
172 parent's children before it was removed.
175 for i, node in enumerate(self.parent.children):
178 del self.parent.children[i]
185 The node immediately following the invocant in their parent's children
192 for i, child in enumerate(self.parent.children):
195 return self.parent.children[i+1]
202 The node immediately preceding the invocant in their parent's children
209 for i, child in enumerate(self.parent.children):
213 return self.parent.children[i-1]
216 for child in self.children:
243 def __init__(self,type, children, argument
253 As a side effect, the parent pointers of the children are updated.
257 self.children = list(children)
258 for ch in self.children:
272 self.children)
280 return u"".join(map(unicode, self.children))
287 return (self.type, self.children) == (other.type, other.children)
291 return Node(self.type, [ch.clone() for ch in self.children],
296 for child in self.children:
304 for child in self.children:
312 if not self.children:
314 return self.children[0].prefix
317 if self.children:
318 self.children[0].prefix = prefix
324 Equivalent to 'node.children[i] = child'. This method also sets the
328 self.children[i].parent = None
329 self.children[i] = child
334 Equivalent to 'node.children.insert(i, child)'. This method also sets
338 self.children.insert(i, child)
343 Equivalent to 'node.children.append(child)'. This method also sets the
347 self.children.append(child)
437 type, value, context, children = raw_node
438 if children or type in gr.number2symbol:
441 if len(children) == 1:
442 return children[0]
443 return Node(type, children, context=context)
564 Match the pattern's content to the node's children.
592 must match the node's children exactly. If the content is
613 Match the pattern's content to the node's children.
625 for c, r in generate_matches(self.content, node.children):
626 if c == len(node.children):
631 if len(self.content) != len(node.children):
633 for subpattern, child in zip(self.content, node.children):