43class_alias(
'Twig_NodeVisitorInterface',
'Twig\NodeVisitor\NodeVisitorInterface',
false);
44class_exists(
'Twig_Environment');
45class_exists(
'Twig_Node');
An exception for terminatinating execution or to throw for unit testing.
Stores the Twig configuration.
Represents a node in the AST.
Twig_NodeVisitorInterface is the interface the all node visitor classes must implement.
enterNode(Twig_NodeInterface $node, Twig_Environment $env)
Called before child nodes are visited.
getPriority()
Returns the priority for this visitor.
leaveNode(Twig_NodeInterface $node, Twig_Environment $env)
Called after child nodes are visited.