public function Twig_Node::compile in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/twig/twig/lib/Twig/Node.php \Twig_Node::compile()
Compiles the node to PHP.
Parameters
Twig_Compiler $compiler A Twig_Compiler instance:
Overrides Twig_NodeInterface::compile
36 methods override Twig_Node::compile()
- Twig_Node_AutoEscape::compile in vendor/
twig/ twig/ lib/ Twig/ Node/ AutoEscape.php - Compiles the node to PHP.
- Twig_Node_Block::compile in vendor/
twig/ twig/ lib/ Twig/ Node/ Block.php - Compiles the node to PHP.
- Twig_Node_BlockReference::compile in vendor/
twig/ twig/ lib/ Twig/ Node/ BlockReference.php - Compiles the node to PHP.
- Twig_Node_CheckSecurity::compile in vendor/
twig/ twig/ lib/ Twig/ Node/ CheckSecurity.php - Compiles the node to PHP.
- Twig_Node_Do::compile in vendor/
twig/ twig/ lib/ Twig/ Node/ Do.php - Compiles the node to PHP.
File
- vendor/
twig/ twig/ lib/ Twig/ Node.php, line 107
Class
- Twig_Node
- Represents a node in the AST.
Code
public function compile(Twig_Compiler $compiler) {
foreach ($this->nodes as $node) {
$node
->compile($compiler);
}
}