OmniSciDB  471d68cefb
 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 606 of file generate_TableFunctionsFactory_init.py.

Member Function Documentation

def generate_TableFunctionsFactory_init.AstTransformer.visit_annotation_node (   self,
  annotation_node 
)

Definition at line 636 of file generate_TableFunctionsFactory_init.py.

637  def visit_annotation_node(self, annotation_node):
638  return copy.copy(annotation_node)
639 
def generate_TableFunctionsFactory_init.AstTransformer.visit_arg_node (   self,
  arg_node 
)

Definition at line 623 of file generate_TableFunctionsFactory_init.py.

624  def visit_arg_node(self, arg_node):
625  arg_node = copy.copy(arg_node)
626  arg_node.type = arg_node.type.accept(self)
627  if arg_node.annotations:
628  arg_node.annotations = [a.accept(self) for a in arg_node.annotations]
629  return arg_node
def generate_TableFunctionsFactory_init.AstTransformer.visit_composed_node (   self,
  composed_node 
)

Definition at line 618 of file generate_TableFunctionsFactory_init.py.

619  def visit_composed_node(self, composed_node):
620  c = copy.copy(composed_node)
621  c.inner = [i.accept(self) for i in c.inner]
622  return c
def generate_TableFunctionsFactory_init.AstTransformer.visit_primitive_node (   self,
  primitive_node 
)

Definition at line 630 of file generate_TableFunctionsFactory_init.py.

631  def visit_primitive_node(self, primitive_node):
632  return copy.copy(primitive_node)
def generate_TableFunctionsFactory_init.AstTransformer.visit_template_node (   self,
  template_node 
)

Definition at line 633 of file generate_TableFunctionsFactory_init.py.

634  def visit_template_node(self, template_node):
635  return copy.copy(template_node)
def generate_TableFunctionsFactory_init.AstTransformer.visit_udtf_node (   self,
  udtf_node 
)

Definition at line 609 of file generate_TableFunctionsFactory_init.py.

610  def visit_udtf_node(self, udtf_node):
611  udtf = copy.copy(udtf_node)
612  udtf.inputs = [arg.accept(self) for arg in udtf.inputs]
613  udtf.outputs = [arg.accept(self) for arg in udtf.outputs]
614  if udtf.templates:
615  udtf.templates = [t.accept(self) for t in udtf.templates]
616  udtf.annotations = [annot.accept(self) for annot in udtf.annotations]
617  return udtf

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