class documentation
class Optimizer(NodeTransformer): (source)
Undocumented
Method | __init__ |
Undocumented |
Method | generic |
Called if no explicit visitor function exists for a node. |
Instance Variable | environment |
Undocumented |
Inherited from NodeTransformer
:
Method | visit |
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 |
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. |
Called if no explicit visitor function exists for a node.
Parameters | |
node:nodes.Node | Undocumented |
*args:t.Any | Undocumented |
**kwargs:t.Any | Undocumented |
Returns | |
nodes.Node | Undocumented |