22 throw new LogicException(
'Twig_BaseNodeVisitor only supports Twig_Node instances.');
31 throw new LogicException(
'Twig_BaseNodeVisitor only supports Twig_Node instances.');
52 class_alias(
'Twig_BaseNodeVisitor',
'Twig\NodeVisitor\AbstractNodeVisitor',
false);
53 class_exists(
'Twig_Environment');
54 class_exists(
'Twig_Node');
Represents a node in the AST.
leaveNode(Twig_NodeInterface $node, Twig_Environment $env)
Called after child nodes are visited.
Represents a node in the AST.
doEnterNode(Twig_Node $node, Twig_Environment $env)
Called before child nodes are visited.
Twig_NodeVisitorInterface is the interface the all node visitor classes must implement.
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.
enterNode(Twig_NodeInterface $node, Twig_Environment $env)
Called before child nodes are visited.
Stores the Twig configuration.