Пример #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
Пример #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
Пример #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
Пример #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
Пример #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
Пример #6
0
 def traverse(self, context):
     return itertools.chain(traverse_expr(self.orderby, context), ScoreMatching.traverse(self,context))
Пример #7
0
 def traverse(self, context):
     for node in traverse_expr(self.filter, context):
         yield node
     yield self
Пример #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
Пример #9
0
 def traverse(self, context):
     for node in traverse_expr(self.complete_expr, context):
         yield node
     yield self
Пример #10
0
 def traverse(self, context):
     for node in traverse_expr(self.expr, context):
         yield node