class Twig_Compiler

Compiles a node to PHP code.

@package twig @author Fabien Potencier <fabien@symfony.com>

Hierarchy

Expanded class hierarchy of Twig_Compiler

File

drupal/core/vendor/twig/twig/lib/Twig/Compiler.php, line 19

View source

Members

Namesort descending Modifiers Type Description Overrides
Twig_Compiler::$debugInfo protected property
Twig_Compiler::$env protected property
Twig_Compiler::$indentation protected property
Twig_Compiler::$lastLine protected property
Twig_Compiler::$source protected property
Twig_Compiler::$sourceLine protected property
Twig_Compiler::$sourceOffset protected property
Twig_Compiler::addDebugInfo public function Adds debugging information.
Twig_Compiler::addIndentation public function Appends an indentation to the current PHP code after compilation.
Twig_Compiler::compile public function Compiles a node. Overrides Twig_CompilerInterface::compile
Twig_Compiler::getDebugInfo public function
Twig_Compiler::getEnvironment public function Returns the environment instance related to this compiler.
Twig_Compiler::getSource public function Gets the current PHP code after compilation. Overrides Twig_CompilerInterface::getSource
Twig_Compiler::indent public function Indents the generated code.
Twig_Compiler::outdent public function Outdents the generated code.
Twig_Compiler::raw public function Adds a raw string to the compiled code.
Twig_Compiler::repr public function Returns a PHP representation of a given value.
Twig_Compiler::string public function Adds a quoted string to the compiled code.
Twig_Compiler::subcompile public function
Twig_Compiler::write public function Writes a string to the compiled code by adding indentation.
Twig_Compiler::__construct public function Constructor.