class documentation

class SyntaxNodeUnparser(unparser.Unparser): (source)

View In Hierarchy

An Unparser class helpful for creating Syntax Token nodes for fn graphs.

Method __init__ Undocumented
Method dispatch Dispatcher function, dispatching tree type T to method _T.
Method fill Indent a piece of text, according to the current indentation level.
Method write Append a piece of text to the current line.
Instance Variable current_ast_node Undocumented
Instance Variable graph Undocumented
Instance Variable last_indent Undocumented
Instance Variable last_lexical_uses Undocumented
Instance Variable last_syntax_node Undocumented
Method _add_syntax_node Undocumented
Method _Name Undocumented
def __init__(self, ast_node, graph): (source)

Undocumented

def dispatch(self, ast_node): (source)

Dispatcher function, dispatching tree type T to method _T.

def fill(self, text=''): (source)

Indent a piece of text, according to the current indentation level.

def write(self, text): (source)

Append a piece of text to the current line.

current_ast_node = (source)

Undocumented

Undocumented

last_indent = (source)

Undocumented

last_lexical_uses: dict = (source)

Undocumented

last_syntax_node = (source)

Undocumented

def _add_syntax_node(self, text): (source)

Undocumented

def _Name(self, node): (source)

Undocumented