/**
  * Calls the accept method on the given tst node. The return value
  * replaces the $node.
  *
  * @param ezcTemplateTstNode $node
  * @return void
  */
 protected function acceptAndUpdate(ezcTemplateTstNode &$node)
 {
     $ret = $node->accept($this);
     if ($ret !== null) {
         $node = $ret;
     }
 }
 /**
  * Convenience function for outputting a node.
  * Instantiates the ezcTemplateTstTreeOutput class and calls accept() on
  * $node, the resulting text is returned.
  *
  * @param ezcTemplateAstNode $node
  * @return string
  */
 public static function output(ezcTemplateTstNode $node)
 {
     $treeOutput = new ezcTemplateTstTreeOutput();
     $node->accept($treeOutput);
     return $treeOutput->text . "\n";
 }