Home | History | Annotate | Download | only in fixes

Lines Matching defs:Leaf

23 from ..fixer_util import Name, syms, Node, Leaf
29 1) clsdef => suite => simple_stmt => expr_stmt => Leaf('__meta')
30 2) clsdef => simple_stmt => expr_stmt => Leaf('__meta')
39 if isinstance(left_side, Leaf) and \
108 # look for simple_stmt[ expr_stmt[ Leaf('__metaclass__') ] ]
115 if isinstance(left_node, Leaf) and \
134 # find the first Leaf
137 if isinstance(node, Leaf) and node.type != token.DEDENT:
164 text_type = node.children[0].type # always Leaf(nnn, 'class')
186 node.insert_child(2, Leaf(token.RPAR, u')'))
188 node.insert_child(2, Leaf(token.LPAR, u'('))
198 arglist.append_child(Leaf(token.COMMA, u','))
217 pass_leaf = Leaf(text_type, u'pass')
220 node.append_child(Leaf(token.NEWLINE, u'\n'))
226 pass_leaf = Leaf(text_type, u'pass')
228 suite.insert_child(-1, Leaf(token.NEWLINE, u'\n'))