class Optimizer(NodeTransformer):
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. |
Undocumented
Parameters | |
environment:t.Optional[ | Undocumented |
Parameters | |
node:nodes.Node | Undocumented |
*args:t.Any | Undocumented |
**kwargs:t.Any | Undocumented |
Returns | |
nodes.Node | Undocumented |