class documentation

class SourceGenerator(NodeVisitor):

View In Hierarchy

This visitor is able to transform a well formed syntax tree into python sourcecode. For more details have a look at the docstring of the node_to_source function.
Method __init__ Undocumented
Method body Undocumented
Method body​_or​_else Undocumented
Method decorators Undocumented
Method generator​_visit Undocumented
Method newline Undocumented
Method sequence​_visit Undocumented
Method signature Undocumented
Method visit​_alias Undocumented
Method visit​_arg Undocumented
Method visit_​Assign Undocumented
Method visit_​Attribute Undocumented
Method visit_​Aug​Assign Undocumented
Method visit_​Bin​Op Undocumented
Method visit_​Bool​Op Undocumented
Method visit_​Break Undocumented
Method visit_​Bytes Undocumented
Method visit_​Call Undocumented
Method visit_​Class​Def Undocumented
Method visit_​Compare Undocumented
Method visit​_comprehension Undocumented
Method visit_​Constant Undocumented
Method visit_​Continue Undocumented
Method visit_​Delete Undocumented
Method visit_​Dict Undocumented
Method visit_​Dict​Comp Undocumented
Method visit_​Ellipsis Undocumented
Method visit​_excepthandler Undocumented
Method visit_​Expr Undocumented
Method visit_​Ext​Slice Undocumented
Method visit_​For Undocumented
Method visit_​Function​Def Undocumented
Method visit_​Global Undocumented
Method visit_​If Undocumented
Method visit_​If​Exp Undocumented
Method visit_​Import Undocumented
Method visit_​Import​From Undocumented
Method visit_​Lambda Undocumented
Method visit_​Name Undocumented
Method visit_​Name​Constant Undocumented
Method visit_​Nonlocal Undocumented
Method visit_​Num Undocumented
Method visit_​Pass Undocumented
Method visit_​Print Undocumented
Method visit_​Raise Undocumented
Method visit_​Repr Undocumented
Method visit_​Return Undocumented
Method visit_​Slice Undocumented
Method visit_​Starred Undocumented
Method visit_​Str Undocumented
Method visit_​Subscript Undocumented
Method visit_​Try​Except Undocumented
Method visit_​Try​Finally Undocumented
Method visit_​Tuple Undocumented
Method visit_​Unary​Op Undocumented
Method visit_​While Undocumented
Method visit_​With Undocumented
Method visit_​Yield Undocumented
Method write Undocumented
Class Variable visit_​Generator​Exp Undocumented
Class Variable visit_​List Undocumented
Class Variable visit_​List​Comp Undocumented
Class Variable visit_​Set Undocumented
Class Variable visit_​Set​Comp Undocumented
Instance Variable indent​_with Undocumented
Instance Variable indentation Undocumented
Instance Variable new​_line Undocumented
Instance Variable new​_lines Undocumented
Instance Variable result Undocumented

Inherited from NodeVisitor:

Method generic​_visit Called if no explicit visitor function exists for a node.
Method get​_visitor Return the visitor function for this node or None if no visitor exists for this node. In that case the generic visit function is used instead.
Method visit Visit a node.
def __init__(self, indent_with):

Undocumented

def body(self, statements):

Undocumented

def body_or_else(self, node):

Undocumented

def decorators(self, node):

Undocumented

def generator_visit(left, right):

Undocumented

def newline(self, n=1):

Undocumented

def sequence_visit(left, right):

Undocumented

def signature(self, node):

Undocumented

def visit_alias(self, node):

Undocumented

def visit_arg(self, node):

Undocumented

def visit_Assign(self, node):

Undocumented

def visit_Attribute(self, node):

Undocumented

def visit_AugAssign(self, node):

Undocumented

def visit_BinOp(self, node):

Undocumented

def visit_BoolOp(self, node):

Undocumented

def visit_Break(self, node):

Undocumented

def visit_Bytes(self, node):

Undocumented

def visit_Call(self, node):

Undocumented

def visit_ClassDef(self, node):

Undocumented

def visit_Compare(self, node):

Undocumented

def visit_comprehension(self, node):

Undocumented

def visit_Constant(self, node):

Undocumented

def visit_Continue(self, node):

Undocumented

def visit_Delete(self, node):

Undocumented

def visit_Dict(self, node):

Undocumented

def visit_DictComp(self, node):

Undocumented

def visit_Ellipsis(self, node):

Undocumented

def visit_excepthandler(self, node):

Undocumented

def visit_Expr(self, node):

Undocumented

def visit_ExtSlice(self, node):

Undocumented

def visit_For(self, node):

Undocumented

def visit_FunctionDef(self, node):

Undocumented

def visit_Global(self, node):

Undocumented

def visit_If(self, node):

Undocumented

def visit_IfExp(self, node):

Undocumented

def visit_Import(self, node):

Undocumented

def visit_ImportFrom(self, node):

Undocumented

def visit_Lambda(self, node):

Undocumented

def visit_Name(self, node):

Undocumented

def visit_NameConstant(self, node):

Undocumented

def visit_Nonlocal(self, node):

Undocumented

def visit_Num(self, node):

Undocumented

def visit_Pass(self, node):

Undocumented

def visit_Print(self, node):

Undocumented

def visit_Raise(self, node):

Undocumented

def visit_Repr(self, node):

Undocumented

def visit_Return(self, node):

Undocumented

def visit_Slice(self, node):

Undocumented

def visit_Starred(self, node):

Undocumented

def visit_Str(self, node):

Undocumented

def visit_Subscript(self, node):

Undocumented

def visit_TryExcept(self, node):

Undocumented

def visit_TryFinally(self, node):

Undocumented

def visit_Tuple(self, node):

Undocumented

def visit_UnaryOp(self, node):

Undocumented

def visit_While(self, node):

Undocumented

def visit_With(self, node):

Undocumented

def visit_Yield(self, node):

Undocumented

def write(self, x):

Undocumented

visit_GeneratorExp =

Undocumented

visit_List =

Undocumented

visit_ListComp =

Undocumented

visit_Set =

Undocumented

visit_SetComp =

Undocumented

indent_with =

Undocumented

indentation: int =

Undocumented

new_line: bool =

Undocumented

new_lines =

Undocumented

result: list =

Undocumented