Lines Matching refs:pytree
19 from lib2to3 import pytree
39 leaf = pytree.Leaf(token.LPAR, '(')
43 leaf = pytree.Leaf(token.LPAR, '(')
44 node = pytree.Node(pygram.python_grammar.symbol2number['suite'], [leaf])
90 lpar1 = pytree.Leaf(token.LPAR, '(')
91 lpar2 = pytree.Leaf(token.LPAR, '(')
92 simple_stmt = pytree.Node(_GRAMMAR_SYMBOL2NUMBER['simple_stmt'],
93 [pytree.Leaf(token.NAME, 'foo')])
94 return pytree.Node(_GRAMMAR_SYMBOL2NUMBER['suite'],
98 return pytree.Leaf(token.RPAR, ')')
153 self._leaf = pytree.Leaf(token.LPAR, '(')
154 self._node = pytree.Node(_GRAMMAR_SYMBOL2NUMBER['simple_stmt'],
155 [pytree.Leaf(token.NAME, 'foo')])