• Home
  • Raw
  • Download

Lines Matching refs:children

125     children = [Leaf(token.NAME, u"from"),
129 imp = Node(syms.import_from, children)
139 if isinstance(node, Node) and node.children == [LParen(), RParen()]:
142 and len(node.children) == 3
143 and isinstance(node.children[0], Leaf)
144 and isinstance(node.children[1], Node)
145 and isinstance(node.children[2], Leaf)
146 and node.children[0].value == u"("
147 and node.children[2].value == u")")
152 and len(node.children) > 1
153 and isinstance(node.children[0], Leaf)
154 and isinstance(node.children[-1], Leaf)
155 and node.children[0].value == u"["
156 and node.children[-1].value == u"]")
238 if parent.type == syms.expr_stmt and parent.children[0] is node:
244 parent.children[0] is node
253 if node.type == syms.suite and len(node.children) > 2:
254 indent = node.children[1]
298 return (node.type == syms.simple_stmt and node.children and
299 is_import(node.children[0]))
309 for idx, node in enumerate(root.children):
312 for offset, node2 in enumerate(root.children[idx:]):
321 for idx, node in enumerate(root.children):
322 if (node.type == syms.simple_stmt and node.children and
323 node.children[0].type == token.STRING):
335 children = [import_, Newline()]
336 root.insert_child(insert_pos, Node(syms.simple_stmt, children))
345 for child in node.children:
348 if _find(name, child.children[1]):
350 n = find_binding(name, make_suite(child.children[-1]), package)
353 n = find_binding(name, make_suite(child.children[-1]), package)
356 n = find_binding(name, make_suite(child.children[2]), package)
360 for i, kid in enumerate(child.children[3:]):
363 n = find_binding(name, make_suite(child.children[i+4]), package)
365 elif child.type in _def_syms and child.children[1].value == name:
372 if _find(name, child.children[0]):
388 nodes.extend(node.children)
399 imp = node.children[1]
401 for child in imp.children:
403 if child.children[2].value == name:
408 last = imp.children[-1]
416 if package and unicode(node.children[1]).strip() != package:
418 n = node.children[3]
425 child = n.children[2]