Lines Matching full:labels
422 def visitor(tree, parent, childIndex, labels):
467 The labels arg of the visitor action method is never set (it's None)
513 def rootvisitor(tree, parent, childIndex, labels):
514 labels = {}
515 if self._parse(tree, tpattern, labels):
516 visitor(tree, parent, childIndex, labels)
521 def parse(self, t, pattern, labels=None):
523 Given a pattern like (ASSIGN %lhs:ID %rhs:.) with optional labels
525 return true if the pattern matches and fill the labels Map with
526 the labels pointing at the appropriate nodes. Return false if
537 return self._parse(t, tpattern, labels)
540 def _parse(self, t1, tpattern, labels):
544 text arguments on nodes. Fill labels map with pointers to nodes
545 in tree matched against nodes in pattern with labels.
562 if tpattern.label is not None and labels is not None:
564 labels[tpattern.label] = t1
575 if not self._parse(child1, child2, labels):