Lines Matching full:children
32 for node in parent.children:
35 elif node.type == syms.simple_stmt and node.children:
36 expr_node = node.children[0]
37 if expr_node.type == syms.expr_stmt and expr_node.children:
38 left_side = expr_node.children[0]
49 for node in cls_node.children:
55 for i, node in enumerate(cls_node.children):
63 while cls_node.children[i+1:]:
64 move_node = cls_node.children[i+1]
76 for semi_ind, node in enumerate(stmt_node.children):
85 while stmt_node.children[semi_ind:]:
86 move_node = stmt_node.children[semi_ind]
90 new_leaf1 = new_stmt.children[0].children[0]
91 old_leaf1 = stmt_node.children[0].children[0]
96 if node.children and node.children[-1].type == token.NEWLINE:
97 node.children[-1].remove()
102 for node in cls_node.children:
109 for i, simple_node in list(enumerate(node.children)):
110 if simple_node.type == syms.simple_stmt and simple_node.children:
111 expr_node = simple_node.children[0]
112 if expr_node.type == syms.expr_stmt and expr_node.children:
114 left_node = expr_node.children[0]
127 kids = suite.children[::-1]
142 kids.extend(node.children[::-1])
164 text_type = node.children[0].type # always Leaf(nnn, 'class')
167 if len(node.children) == 7:
170 if node.children[3].type == syms.arglist:
171 arglist = node.children[3]
174 parent = node.children[3].clone()
177 elif len(node.children) == 6:
182 elif len(node.children) == 4:
193 meta_txt = last_metaclass.children[0].children[0]
197 if arglist.children:
204 expr_stmt = last_metaclass.children[0]
206 expr_stmt.children[1].prefix = ''
207 expr_stmt.children[2].prefix = ''
214 if not suite.children:
222 elif len(suite.children) > 1 and \
223 (suite.children[-2].type == token.INDENT and
224 suite.children[-1].type == token.DEDENT):