Exemplo n.º 1
0
 def traverse(self, context):
     for node in traverse_expr(self.filter, context):
         yield node
     for kwarg in self.kwargs.itervalues():
         for node in traverse_expr(kwarg, context):
             yield node
     yield self
Exemplo n.º 2
0
 def traverse(self, context):
     for expr in self.expressions:
         for node in traverse_expr(expr, context):
             yield node
     for node in traverse_expr(self.filter, context):
         yield node
     yield self
Exemplo n.º 3
0
 def traverse(self, context):
     for node in traverse_expr(self.set1filter, context):
         yield node
     for node in traverse_expr(self.set2filter, context):
         yield node
     for node in traverse_expr(self.score_expr, context):
         yield node
     yield self
Exemplo n.º 4
0
 def traverse(self, context):
     for node in traverse_expr(self.cond, context):
         yield node
     for node in traverse_expr(self.iftrue, context):
         yield node
     for node in traverse_expr(self.iffalse, context):
         yield node
     yield self
Exemplo n.º 5
0
 def traverse(self, context):
     for node in FilteredExpression.traverse(self, context):
         yield node
     for expr in self.expressions:
         for node in traverse_expr(expr, context):
             yield node
     for node in traverse_expr(self.take_filter, context):
         yield node
     for node in traverse_expr(self.leave_filter, context):
         yield node
     yield self
Exemplo n.º 6
0
 def traverse(self, context):
     return itertools.chain(traverse_expr(self.orderby, context), ScoreMatching.traverse(self,context))
Exemplo n.º 7
0
 def traverse(self, context):
     for node in traverse_expr(self.filter, context):
         yield node
     yield self
Exemplo n.º 8
0
 def traverse(self, context):
     for node in traverse_expr(self.filter, context):
         yield node
     for node in FunctionExpression.traverse(self, context):
         yield node
Exemplo n.º 9
0
 def traverse(self, context):
     for node in traverse_expr(self.complete_expr, context):
         yield node
     yield self
Exemplo n.º 10
0
 def traverse(self, context):
     for node in traverse_expr(self.expr, context):
         yield node