Searched refs:LeafPattern (Results 1 – 8 of 8) sorted by relevance
/external/python/cpython3/Lib/lib2to3/tests/ |
D | test_pytree.py | 373 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/ |
D | test_pytree.py | 395 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/ |
D | patcomp.py | 144 return pytree.LeafPattern(_type_of_literal(value), value) 152 return pytree.LeafPattern(TOKEN_MAP[value])
|
D | pytree.py | 500 class LeafPattern(BasePattern): class
|
D | refactor.py | 51 if isinstance(pat, (pytree.NodePattern, pytree.LeafPattern)):
|
/external/python/cpython2/Lib/lib2to3/ |
D | patcomp.py | 144 return pytree.LeafPattern(_type_of_literal(value), value) 152 return pytree.LeafPattern(TOKEN_MAP[value])
|
D | pytree.py | 534 class LeafPattern(BasePattern): class
|
D | refactor.py | 54 if isinstance(pat, (pytree.NodePattern, pytree.LeafPattern)):
|