class documentation

class Optimizer(NodeTransformer):

View In Hierarchy

Undocumented

Method __init__ Undocumented
Method generic​_visit Called if no explicit visitor function exists for a node.
Instance Variable environment Undocumented

Inherited from NodeTransformer:

Method visit​_list As transformers may return lists in some places this method can be used to enforce a list as return value.

Inherited from NodeVisitor (via NodeTransformer):

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, environment):

Undocumented

Parameters
environment:t.Optional[Environment]Undocumented
def generic_visit(self, node, *args, **kwargs):
Called if no explicit visitor function exists for a node.
Parameters
node:nodes.NodeUndocumented
*args:t.AnyUndocumented
**kwargs:t.AnyUndocumented
Returns
nodes.NodeUndocumented
environment =

Undocumented