OmniSciDB  085a039ca4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
generate_TableFunctionsFactory_init.AstTransformer Class Reference
+ Inheritance diagram for generate_TableFunctionsFactory_init.AstTransformer:
+ Collaboration diagram for generate_TableFunctionsFactory_init.AstTransformer:

Public Member Functions

def visit_udtf_node
 
def visit_composed_node
 
def visit_arg_node
 
def visit_primitive_node
 
def visit_template_node
 
def visit_annotation_node
 
- Public Member Functions inherited from generate_TableFunctionsFactory_init.AstVisitor
def visit_udtf_node
 
def visit_composed_node
 
def visit_arg_node
 
def visit_primitive_node
 
def visit_annotation_node
 
def visit_template_node
 

Detailed Description

Only overload the methods you need

Definition at line 637 of file generate_TableFunctionsFactory_init.py.

Member Function Documentation

def generate_TableFunctionsFactory_init.AstTransformer.visit_annotation_node (   self,
  annotation_node 
)

Definition at line 667 of file generate_TableFunctionsFactory_init.py.

668  def visit_annotation_node(self, annotation_node):
669  return copy.copy(annotation_node)
670 
def generate_TableFunctionsFactory_init.AstTransformer.visit_arg_node (   self,
  arg_node 
)

Definition at line 654 of file generate_TableFunctionsFactory_init.py.

655  def visit_arg_node(self, arg_node):
656  arg_node = copy.copy(arg_node)
657  arg_node.type = arg_node.type.accept(self)
658  if arg_node.annotations:
659  arg_node.annotations = [a.accept(self) for a in arg_node.annotations]
660  return arg_node
def generate_TableFunctionsFactory_init.AstTransformer.visit_composed_node (   self,
  composed_node 
)

Definition at line 649 of file generate_TableFunctionsFactory_init.py.

650  def visit_composed_node(self, composed_node):
651  c = copy.copy(composed_node)
652  c.inner = [i.accept(self) for i in c.inner]
653  return c
def generate_TableFunctionsFactory_init.AstTransformer.visit_primitive_node (   self,
  primitive_node 
)

Definition at line 661 of file generate_TableFunctionsFactory_init.py.

662  def visit_primitive_node(self, primitive_node):
663  return copy.copy(primitive_node)
def generate_TableFunctionsFactory_init.AstTransformer.visit_template_node (   self,
  template_node 
)

Definition at line 664 of file generate_TableFunctionsFactory_init.py.

665  def visit_template_node(self, template_node):
666  return copy.copy(template_node)
def generate_TableFunctionsFactory_init.AstTransformer.visit_udtf_node (   self,
  udtf_node 
)

Definition at line 640 of file generate_TableFunctionsFactory_init.py.

641  def visit_udtf_node(self, udtf_node):
642  udtf = copy.copy(udtf_node)
643  udtf.inputs = [arg.accept(self) for arg in udtf.inputs]
644  udtf.outputs = [arg.accept(self) for arg in udtf.outputs]
645  if udtf.templates:
646  udtf.templates = [t.accept(self) for t in udtf.templates]
647  udtf.annotations = [annot.accept(self) for annot in udtf.annotations]
648  return udtf

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