Home
last modified time | relevance | path

Searched refs:generate_matches (Results 1 – 4 of 4) sorted by relevance

/external/python/cpython3/Lib/lib2to3/
Dpytree.py489 def generate_matches(self, nodes): member in BasePattern
591 for c, r in generate_matches(self.content, node.children):
679 for c, r in self.generate_matches(nodes):
688 def generate_matches(self, nodes): member in WildcardPattern
742 for c, r in generate_matches(alt, nodes):
753 for c1, r1 in generate_matches(alt, nodes[c0:]):
785 for c0, r0 in generate_matches(alt, nodes):
816 def generate_matches(self, nodes): member in NegatedPattern
823 for c, r in self.content.generate_matches(nodes):
828 def generate_matches(patterns, nodes): function
[all …]
/external/python/cpython2/Lib/lib2to3/
Dpytree.py523 def generate_matches(self, nodes): member in BasePattern
625 for c, r in generate_matches(self.content, node.children):
713 for c, r in self.generate_matches(nodes):
722 def generate_matches(self, nodes): member in WildcardPattern
776 for c, r in generate_matches(alt, nodes):
787 for c1, r1 in generate_matches(alt, nodes[c0:]):
819 for c0, r0 in generate_matches(alt, nodes):
850 def generate_matches(self, nodes): member in NegatedPattern
857 for c, r in self.content.generate_matches(nodes):
862 def generate_matches(patterns, nodes): function
[all …]
/external/python/cpython3/Lib/lib2to3/tests/
Dtest_pytree.py449 self.assertEqual([x[0] for x in pw.generate_matches(leaves)],
452 matches = list(pytree.generate_matches([pr], [root]))
/external/python/cpython2/Lib/lib2to3/tests/
Dtest_pytree.py471 self.assertEqual([x[0] for x in pw.generate_matches(leaves)],
474 matches = list(pytree.generate_matches([pr], [root]))