Lines Matching refs:results
433 name = None # Optional name used to store match in results dict
454 def match(self, node, results=None):
460 If results is not None, it must be a dict which will be
469 if results is not None:
474 results.update(r)
475 if results is not None and self.name:
476 results[self.name] = node
479 def match_seq(self, nodes, results=None):
487 return self.match(nodes[0], results)
511 If a name is given, the matching node is stored in the results
522 def match(self, node, results=None):
526 return BasePattern.match(self, node, results)
528 def _submatch(self, node, results=None):
536 If results is not None, it must be a dict which will be
539 When returning False, the results dict may still be updated.
561 If a name is given, the matching node is stored in the results
577 def _submatch(self, node, results=None):
585 If results is not None, it must be a dict which will be
588 When returning False, the results dict may still be updated.
593 if results is not None:
594 results.update(r)
600 if not subpattern.match(child, results):
673 def match(self, node, results=None):
675 return self.match_seq([node], results)
677 def match_seq(self, nodes, results=None):
681 if results is not None:
682 results.update(r)
684 results[self.name] = list(nodes)
696 (count, results) tuples where:
698 results: dict containing named submatches.
711 # results in some ugly messages about how RuntimeErrors are being
739 results = []
744 results.append((c, r))
747 while results:
749 for c0, r0 in results:
760 results = new_results
837 (count, results) tuples where:
839 results: dict containing named submatches.