OmniSciDB  a5dc49c757
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TableFunctionsFactory_transformers.Pipeline Class Reference
+ Inheritance diagram for TableFunctionsFactory_transformers.Pipeline:
+ Collaboration diagram for TableFunctionsFactory_transformers.Pipeline:

Public Member Functions

def __init__
 
def __call__
 

Public Attributes

 passes
 

Detailed Description

Definition at line 518 of file TableFunctionsFactory_transformers.py.

Constructor & Destructor Documentation

def TableFunctionsFactory_transformers.Pipeline.__init__ (   self,
  passes 
)

Member Function Documentation

def TableFunctionsFactory_transformers.Pipeline.__call__ (   self,
  ast_list 
)

Definition at line 522 of file TableFunctionsFactory_transformers.py.

References TableFunctionsFactory_transformers.Pipeline.passes.

523  def __call__(self, ast_list):
524  if not isinstance(ast_list, list):
525  ast_list = [ast_list]
526 
527  for c in self.passes:
528  ast_list = [ast.accept(c()) for ast in ast_list]
529  ast_list = itertools.chain.from_iterable( # flatten the list
530  map(lambda x: x if isinstance(x, list) else [x], ast_list))
531 
532  return list(ast_list)

Member Data Documentation

TableFunctionsFactory_transformers.Pipeline.passes

The documentation for this class was generated from the following file: