public function Twig_Node::compile

Compiles the node to PHP.

Parameters

Twig_Compiler A Twig_Compiler instance:

Overrides Twig_NodeInterface::compile

33 methods override Twig_Node::compile()
Twig_Node_AutoEscape::compile in drupal/core/vendor/twig/twig/lib/Twig/Node/AutoEscape.php
Compiles the node to PHP.
Twig_Node_Block::compile in drupal/core/vendor/twig/twig/lib/Twig/Node/Block.php
Compiles the node to PHP.
Twig_Node_BlockReference::compile in drupal/core/vendor/twig/twig/lib/Twig/Node/BlockReference.php
Compiles the node to PHP.
Twig_Node_Do::compile in drupal/core/vendor/twig/twig/lib/Twig/Node/Do.php
Compiles the node to PHP.
Twig_Node_Expression_Array::compile in drupal/core/vendor/twig/twig/lib/Twig/Node/Expression/Array.php
Compiles the node to PHP.

... See full list

File

drupal/core/vendor/twig/twig/lib/Twig/Node.php, line 102

Class

Twig_Node
Represents a node in the AST.

Code

public function compile(Twig_Compiler $compiler) {
  foreach ($this->nodes as $node) {
    $node
      ->compile($compiler);
  }
}