NodeVisitor that supports matching nodes based on their base classes. More...
Public Member Functions | |
| def | visit (self, node) |
NodeVisitor that supports matching nodes based on their base classes.
Otherwise identical to the standard `ast.NodeVisitor
<https://docs.python.org/library/ast.html#ast.NodeVisitor>`__,
but allows creating ``visit_ClassName`` methods so that the ``ClassName``
is one of the base classes of the node. For example, this visitor method
matches all statements::
def visit_Statement(self, node):
# ...
Definition at line 45 of file visitor.py.
| def robot.parsing.model.visitor.ModelVisitor.visit | ( | self, | |
| node | |||
| ) |
Definition at line 47 of file visitor.py.