You are here

public function Twig_Node::compile in Translation template extractor 6.3

Same name and namespace in other branches
  1. 7.3 vendor/Twig/Node.php \Twig_Node::compile()

Compiles the node to PHP.

Parameters

Twig_Compiler $compiler A Twig_Compiler instance:

Overrides Twig_NodeInterface::compile

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

... See full list

File

vendor/Twig/Node.php, line 105

Class

Twig_Node
Represents a node in the AST.

Code

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