Lines Matching full:children
123 children = [Leaf(token.NAME, "from"),
127 imp = Node(syms.import_from, children)
160 if isinstance(node, Node) and node.children == [LParen(), RParen()]:
163 and len(node.children) == 3
164 and isinstance(node.children[0], Leaf)
165 and isinstance(node.children[1], Node)
166 and isinstance(node.children[2], Leaf)
167 and node.children[0].value == "("
168 and node.children[2].value == ")")
173 and len(node.children) > 1
174 and isinstance(node.children[0], Leaf)
175 and isinstance(node.children[-1], Leaf)
176 and node.children[0].value == "["
177 and node.children[-1].value == "]")
259 if parent.type == syms.expr_stmt and parent.children[0] is node:
265 parent.children[0] is node
274 if node.type == syms.suite and len(node.children) > 2:
275 indent = node.children[1]
319 return (node.type == syms.simple_stmt and node.children and
320 is_import(node.children[0]))
330 for idx, node in enumerate(root.children):
333 for offset, node2 in enumerate(root.children[idx:]):
342 for idx, node in enumerate(root.children):
343 if (node.type == syms.simple_stmt and node.children and
344 node.children[0].type == token.STRING):
356 children = [import_, Newline()]
357 root.insert_child(insert_pos, Node(syms.simple_stmt, children))
366 for child in node.children:
369 if _find(name, child.children[1]):
371 n = find_binding(name, make_suite(child.children[-1]), package)
374 n = find_binding(name, make_suite(child.children[-1]), package)
377 n = find_binding(name, make_suite(child.children[2]), package)
381 for i, kid in enumerate(child.children[3:]):
384 n = find_binding(name, make_suite(child.children[i+4]), package)
386 elif child.type in _def_syms and child.children[1].value == name:
393 if _find(name, child.children[0]):
409 nodes.extend(node.children)
420 imp = node.children[1]
422 for child in imp.children:
424 if child.children[2].value == name:
429 last = imp.children[-1]
437 if package and str(node.children[1]).strip() != package:
439 n = node.children[3]
446 child = n.children[2]