22 throw new LogicException(
'Twig_BaseNodeVisitor only supports Twig_Node instances.');
31 throw new LogicException(
'Twig_BaseNodeVisitor only supports Twig_Node instances.');
52class_alias(
'Twig_BaseNodeVisitor',
'Twig\NodeVisitor\AbstractNodeVisitor',
false);
53class_exists(
'Twig_Environment');
54class_exists(
'Twig_Node');
An exception for terminatinating execution or to throw for unit testing.
Twig_BaseNodeVisitor can be used to make node visitors compatible with Twig 1.x and 2....
doLeaveNode(Twig_Node $node, Twig_Environment $env)
Called after child nodes are visited.
doEnterNode(Twig_Node $node, Twig_Environment $env)
Called before child nodes are visited.
enterNode(Twig_NodeInterface $node, Twig_Environment $env)
Called before child nodes are visited.
leaveNode(Twig_NodeInterface $node, Twig_Environment $env)
Called after child nodes are visited.
Stores the Twig configuration.
Represents a node in the AST.
Represents a node in the AST.
Twig_NodeVisitorInterface is the interface the all node visitor classes must implement.