|
Server : Apache System : Linux cvar2.toservers.com 3.10.0-962.3.2.lve1.5.73.el7.x86_64 #1 SMP Wed Aug 24 21:31:23 UTC 2022 x86_64 User : njnconst ( 1116) PHP Version : 8.4.18 Disable Function : NONE Directory : /proc/self/root/lib/python2.7/site-packages/jinja2/ |
Upload File : |
�
-/�_c @ sF d Z d d l m Z d e f d � � YZ d e f d � � YZ d S( sV API for traversing the AST nodes. Implemented by the compiler and
meta introspection.
i ( t Nodet NodeVisitorc B s) e Z d Z d � Z d � Z d � Z RS( s Walks the abstract syntax tree and call visitor functions for every
node found. The visitor functions may return values which will be
forwarded by the `visit` method.
Per default the visitor functions for the nodes are ``'visit_'`` +
class name of the node. So a `TryFinally` node visit function would
be `visit_TryFinally`. This behavior can be changed by overriding
the `get_visitor` function. If no visitor function exists for a node
(return value `None`) the `generic_visit` visitor is used instead.
c C s d | j j } t | | d � S( s� 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.
t visit_N( t __class__t __name__t getattrt None( t selft nodet method( ( s0 /tmp/pip-install-sTXtzD/Jinja2/jinja2/visitor.pyt get_visitor s c O s>