Home
last modified time | relevance | path

Searched refs:insert_child (Results 1 – 7 of 7) sorted by relevance

/external/python/cpython2/Lib/lib2to3/fixes/
Dfix_metaclass.py89 parent.insert_child(i, new_stmt)
181 node.insert_child(3, arglist)
186 node.insert_child(2, Leaf(token.RPAR, u')'))
187 node.insert_child(2, arglist)
188 node.insert_child(2, Leaf(token.LPAR, u'('))
227 suite.insert_child(-1, pass_leaf)
228 suite.insert_child(-1, Leaf(token.NEWLINE, u'\n'))
Dfix_exitfunc.py71 containing_stmt.insert_child(position + 1, Newline())
72 containing_stmt.insert_child(position + 2, new)
Dfix_except.py84 e_suite.insert_child(0, child)
85 e_suite.insert_child(i, assign)
Dfix_paren.py43 target.insert_child(0, lparen)
/external/python/cpython2/Lib/lib2to3/
Dfixer_util.py58 node.insert_child(1, Node(syms.arglist, args))
336 root.insert_child(insert_pos, Node(syms.simple_stmt, children))
Dpytree.py332 def insert_child(self, i, child): member in Node
/external/python/cpython2/Lib/lib2to3/tests/
Dtest_pytree.py318 n1.insert_child(0, l2)
323 n1.insert_child(2, l3)
327 self.assertRaises(Exception, n1.insert_child, 0, list)