Home | History | Annotate | Download | only in lib2to3

Lines Matching refs:child

366     for child in node.children:
368 if child.type == syms.for_stmt:
369 if _find(name, child.children[1]):
370 return child
371 n = find_binding(name, make_suite(child.children[-1]), package)
373 elif child.type in (syms.if_stmt, syms.while_stmt):
374 n = find_binding(name, make_suite(child.children[-1]), package)
376 elif child.type == syms.try_stmt:
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:
387 ret = child
388 elif _is_import_binding(child, name, package):
389 ret = child
390 elif child.type == syms.simple_stmt:
391 ret = find_binding(name, child, package)
392 elif child.type == syms.expr_stmt:
393 if _find(name, child.children[0]):
394 ret = child
422 for child in imp.children:
423 if child.type == syms.dotted_as_name:
424 if child.children[2].value == name:
426 elif child.type == token.NAME and child.value == name:
446 child = n.children[2]
447 if child.type == token.NAME and child.value == name: