src/NodeVisitor/AbstractPathResolver.php
/**
     * Called after child nodes are visited.
     *
     * @param \Twig_NodeInterface $node The node to visit
     * @param \Twig_Environment   $env  The Twig environment instance
     *
     * @return \Twig_NodeInterface|false The modified node or false if the node must be removed
     */
Called after child nodes are visited.
@param \Twig_NodeInterface $node The node to visit
@param \Twig_Environment   $env  The Twig environment instance

@return \Twig_NodeInterface|false The modified node or false if the node must be removed
Called after child nodes are visited . @param \ Twig_NodeInterface $node The node to visit @param \ Twig_Environment $env The Twig environment instance @return \ Twig_NodeInterface|false The modified node or false if the node must be removed
public function leaveNode(\Twig_NodeInterface $node, \Twig_Environment $env)
    {
        if (null !== $this->currentDir) {
            $this->processNode($node);
        }
        return $node;
    }
public function leaveNode ( \ Twig_NodeInterface $ node , \ Twig_Environment $ env ) { if ( null !== $ this -> currentDir ) { $ this -> processNode ( $ node ) ; } return $ node ; }
Called after child nodes are visited.
Called after child nodes are visited .
// Only process if the current directory was set