You are here

protected function Twig_Node_Module::compileDebugInfo in Translation template extractor 6.3

Same name and namespace in other branches
  1. 7.3 vendor/Twig/Node/Module.php \Twig_Node_Module::compileDebugInfo()
1 call to Twig_Node_Module::compileDebugInfo()
Twig_Node_Module::compileTemplate in vendor/Twig/Node/Module.php

File

vendor/Twig/Node/Module.php, line 350

Class

Twig_Node_Module
Represents a module node.

Code

protected function compileDebugInfo(Twig_Compiler $compiler) {
  $compiler
    ->write("public function getDebugInfo()\n", "{\n")
    ->indent()
    ->write(sprintf("return %s;\n", str_replace("\n", '', var_export(array_reverse($compiler
    ->getDebugInfo(), true), true))))
    ->outdent()
    ->write("}\n");
}