You are here

public function Twig_Node_Expression_Binary::compile in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/twig/twig/lib/Twig/Node/Expression/Binary.php \Twig_Node_Expression_Binary::compile()

Compiles the node to PHP.

Parameters

Twig_Compiler $compiler A Twig_Compiler instance:

Overrides Twig_Node::compile

1 call to Twig_Node_Expression_Binary::compile()
Twig_Node_Expression_Binary_FloorDiv::compile in vendor/twig/twig/lib/Twig/Node/Expression/Binary/FloorDiv.php
Compiles the node to PHP.
8 methods override Twig_Node_Expression_Binary::compile()
Twig_Node_Expression_Binary_EndsWith::compile in vendor/twig/twig/lib/Twig/Node/Expression/Binary/EndsWith.php
Compiles the node to PHP.
Twig_Node_Expression_Binary_FloorDiv::compile in vendor/twig/twig/lib/Twig/Node/Expression/Binary/FloorDiv.php
Compiles the node to PHP.
Twig_Node_Expression_Binary_In::compile in vendor/twig/twig/lib/Twig/Node/Expression/Binary/In.php
Compiles the node to PHP.
Twig_Node_Expression_Binary_Matches::compile in vendor/twig/twig/lib/Twig/Node/Expression/Binary/Matches.php
Compiles the node to PHP.
Twig_Node_Expression_Binary_NotIn::compile in vendor/twig/twig/lib/Twig/Node/Expression/Binary/NotIn.php
Compiles the node to PHP.

... See full list

File

vendor/twig/twig/lib/Twig/Node/Expression/Binary.php, line 19

Class

Twig_Node_Expression_Binary

Code

public function compile(Twig_Compiler $compiler) {
  $compiler
    ->raw('(')
    ->subcompile($this
    ->getNode('left'))
    ->raw(' ');
  $this
    ->operator($compiler);
  $compiler
    ->raw(' ')
    ->subcompile($this
    ->getNode('right'))
    ->raw(')');
}