Home | History | Annotate | Download | only in lib2to3

Lines Matching refs:results

467     name = None     # Optional name used to store match in results dict
488 def match(self, node, results=None):
494 If results is not None, it must be a dict which will be
503 if results is not None:
508 results.update(r)
509 if results is not None and self.name:
510 results[self.name] = node
513 def match_seq(self, nodes, results=None):
521 return self.match(nodes[0], results)
545 If a name is given, the matching node is stored in the results
556 def match(self, node, results=None):
560 return BasePattern.match(self, node, results)
562 def _submatch(self, node, results=None):
570 If results is not None, it must be a dict which will be
573 When returning False, the results dict may still be updated.
595 If a name is given, the matching node is stored in the results
611 def _submatch(self, node, results=None):
619 If results is not None, it must be a dict which will be
622 When returning False, the results dict may still be updated.
627 if results is not None:
628 results.update(r)
634 if not subpattern.match(child, results):
707 def match(self, node, results=None):
709 return self.match_seq([node], results)
711 def match_seq(self, nodes, results=None):
715 if results is not None:
716 results.update(r)
718 results[self.name] = list(nodes)
730 (count, results) tuples where:
732 results: dict containing named submatches.
745 # results in some ugly messages about how RuntimeErrors are being
773 results = []
778 results.append((c, r))
781 while results:
783 for c0, r0 in results:
794 results = new_results
871 (count, results) tuples where:
873 results: dict containing named submatches.