TransDefaultDomainNode.php 833 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. /*
  3. * This file is part of the Symfony package.
  4. *
  5. * (c) Fabien Potencier <fabien@symfony.com>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Symfony\Bridge\Twig\Node;
  11. /**
  12. * @author Fabien Potencier <fabien@symfony.com>
  13. */
  14. class TransDefaultDomainNode extends \Twig_Node
  15. {
  16. public function __construct(\Twig_Node_Expression $expr, $lineno = 0, $tag = null)
  17. {
  18. parent::__construct(array('expr' => $expr), array(), $lineno, $tag);
  19. }
  20. /**
  21. * Compiles the node to PHP.
  22. *
  23. * @param \Twig_Compiler $compiler A Twig_Compiler instance
  24. */
  25. public function compile(\Twig_Compiler $compiler)
  26. {
  27. // noop as this node is just a marker for TranslationDefaultDomainNodeVisitor
  28. }
  29. }