original_docstring: 
      Convert the supplied calendar-query into an expression tree.
  
      @param filter: the L{Filter} for the calendar-query to convert.
      @return: a L{baseExpression} for the expression tree.
      
docstring: Convert the supplied calendar-query into an expression tree.
docstring_tokens: Convert the supplied calendar - query into an expression tree .
code: def buildExpression(filter, fields):
      """
      Convert the supplied calendar-query into an expression tree.
  
      @param filter: the L{Filter} for the calendar-query to convert.
      @return: a L{baseExpression} for the expression tree.
      """
  
      # Lets assume we have a valid filter from the outset.
  
      # Top-level filter contains exactly one comp-filter element
      assert filter.child is not None
      vcalfilter = filter.child
      assert isinstance(vcalfilter, ComponentFilter)
      assert vcalfilter.filter_name == "VCALENDAR"
  
      if len(vcalfilter.filters) > 0:
          # Determine logical expression grouping
          logical = expression.andExpression if vcalfilter.filter_test == "allof" else expression.orExpression
  
          # Only comp-filters are handled
          for _ignore in [x for x in vcalfilter.filters if not isinstance(x, ComponentFilter)]:
              raise ValueError
  
          return compfilterListExpression(vcalfilter.filters, fields, logical)
      else:
          return expression.allExpression()
code_tokens: def buildExpression ( filter , fields ) : assert filter . child is not None vcalfilter = filter . child assert isinstance ( vcalfilter , ComponentFilter ) assert vcalfilter . filter_name == "VCALENDAR" if len ( vcalfilter . filters ) > 0 : logical = expression . andExpression if vcalfilter . filter_test == "allof" else expression . orExpression for _ignore in [ x for x in vcalfilter . filters if not isinstance ( x , ComponentFilter ) ] : raise ValueError return compfilterListExpression ( vcalfilter . filters , fields , logical ) else : return expression . allExpression ( )
short_docstring: Convert the supplied calendar-query into an expression tree.
short_docstring_tokens: Convert the supplied calendar - query into an expression tree .
comment: """
      Convert the supplied calendar-query into an expression tree.
  
      @param filter: the L{Filter} for the calendar-query to convert.
      @return: a L{baseExpression} for the expression tree.
      """$SEP$# Lets assume we have a valid filter from the outset.$SEP$# Top-level filter contains exactly one comp-filter element$SEP$# Determine logical expression grouping$SEP$# Only comp-filters are handled