protected function Twig_Node_Module::compileDebugInfo in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/twig/twig/lib/Twig/Node/Module.php \Twig_Node_Module::compileDebugInfo()
1 call to Twig_Node_Module::compileDebugInfo()
- Twig_Node_Module::compileTemplate in vendor/
twig/ twig/ lib/ Twig/ Node/ Module.php
File
- vendor/
twig/ twig/ lib/ Twig/ Node/ Module.php, line 376
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");
}