Qucs-S S-parameter Viewer & RF Synthesis Tools
Loading...
Searching...
No Matches
Public Member Functions | List of all members
jinja2.visitor.NodeTransformer Class Reference
Inheritance diagram for jinja2.visitor.NodeTransformer:
Inheritance graph
[legend]
Collaboration diagram for jinja2.visitor.NodeTransformer:
Collaboration graph
[legend]

Public Member Functions

Node generic_visit (self, Node node, *t.Any args, **t.Any kwargs)
 
t.List[Nodevisit_list (self, Node node, *t.Any args, **t.Any kwargs)
 
- Public Member Functions inherited from jinja2.visitor.NodeVisitor
"t.Optional[VisitCallable]" get_visitor (self, Node node)
 
t.Any visit (self, Node node, *t.Any args, **t.Any kwargs)
 

Detailed Description

Walks the abstract syntax tree and allows modifications of nodes.

The `NodeTransformer` will walk the AST and use the return value of the
visitor functions to replace or remove the old node.  If the return
value of the visitor function is `None` the node will be removed
from the previous location otherwise it's replaced with the return
value.  The return value may be the original node in which case no
replacement takes place.

Member Function Documentation

◆ generic_visit()

Node jinja2.visitor.NodeTransformer.generic_visit (   self,
Node  node,
*t.Any  args,
**t.Any  kwargs 
)
Called if no explicit visitor function exists for a node.

Reimplemented from jinja2.visitor.NodeVisitor.

Reimplemented in jinja2.optimizer.Optimizer.

◆ visit_list()

t.List[Node] jinja2.visitor.NodeTransformer.visit_list (   self,
Node  node,
*t.Any  args,
**t.Any  kwargs 
)
As transformers may return lists in some places this method
can be used to enforce a list as return value.

The documentation for this class was generated from the following file: