Lines Matching refs:child
345 for child in node.children:
347 if child.type == syms.for_stmt:
348 if _find(name, child.children[1]):
349 return child
350 n = find_binding(name, make_suite(child.children[-1]), package)
352 elif child.type in (syms.if_stmt, syms.while_stmt):
353 n = find_binding(name, make_suite(child.children[-1]), package)
355 elif child.type == syms.try_stmt:
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:
366 ret = child
367 elif _is_import_binding(child, name, package):
368 ret = child
369 elif child.type == syms.simple_stmt:
370 ret = find_binding(name, child, package)
371 elif child.type == syms.expr_stmt:
372 if _find(name, child.children[0]):
373 ret = child
401 for child in imp.children:
402 if child.type == syms.dotted_as_name:
403 if child.children[2].value == name:
405 elif child.type == token.NAME and child.value == name:
425 child = n.children[2]
426 if child.type == token.NAME and child.value == name: