Home
last modified time | relevance | path

Searched refs:LeafPattern (Results 1 – 8 of 8) sorted by relevance

/external/python/cpython3/Lib/lib2to3/tests/
Dtest_pytree.py373 pl = pytree.LeafPattern(100, "foo", name="pl")
409 pl = pytree.LeafPattern(100, "foo", name="pl")
440 pa = pytree.LeafPattern(1, "a", "pa")
441 pb = pytree.LeafPattern(1, "b", "pb")
442 pc = pytree.LeafPattern(1, "c", "pc")
443 pd = pytree.LeafPattern(1, "d", "pd")
444 pe = pytree.LeafPattern(1, "e", "pe")
445 pf = pytree.LeafPattern(1, "f", "pf")
463 (pytree.LeafPattern(7),
465 pytree.LeafPattern(8)))
/external/python/cpython2/Lib/lib2to3/tests/
Dtest_pytree.py395 pl = pytree.LeafPattern(100, "foo", name="pl")
431 pl = pytree.LeafPattern(100, "foo", name="pl")
462 pa = pytree.LeafPattern(1, "a", "pa")
463 pb = pytree.LeafPattern(1, "b", "pb")
464 pc = pytree.LeafPattern(1, "c", "pc")
465 pd = pytree.LeafPattern(1, "d", "pd")
466 pe = pytree.LeafPattern(1, "e", "pe")
467 pf = pytree.LeafPattern(1, "f", "pf")
485 (pytree.LeafPattern(7),
487 pytree.LeafPattern(8)))
/external/python/cpython3/Lib/lib2to3/
Dpatcomp.py144 return pytree.LeafPattern(_type_of_literal(value), value)
152 return pytree.LeafPattern(TOKEN_MAP[value])
Dpytree.py500 class LeafPattern(BasePattern): class
Drefactor.py51 if isinstance(pat, (pytree.NodePattern, pytree.LeafPattern)):
/external/python/cpython2/Lib/lib2to3/
Dpatcomp.py144 return pytree.LeafPattern(_type_of_literal(value), value)
152 return pytree.LeafPattern(TOKEN_MAP[value])
Dpytree.py534 class LeafPattern(BasePattern): class
Drefactor.py54 if isinstance(pat, (pytree.NodePattern, pytree.LeafPattern)):