21 parent::__construct(array(), array(
'extension_name' => $extensionName,
'name' =>
$name,
'type' =>
$type,
'var_name' => $varName));
27 ->
write(sprintf(
'$%s = $this->env->getExtension(', $this->
getAttribute(
'var_name')))
30 ->write(sprintf(
'$%s->enter($%s = new Twig_Profiler_Profile($this->getTemplateName(), ', $this->
getAttribute(
'var_name'), $this->
getAttribute(
'var_name').
'_prof'))
39 class_alias(
'Twig_Profiler_Node_EnterProfile',
'Twig\Profiler\Node\EnterProfileNode',
false);
Represents a node in the AST.
compile(Twig_Compiler $compiler)
Compiles the node to PHP.
Represents a profile enter node.
__construct($extensionName, $type, $name, $varName)
write()
Writes a string to the compiled code by adding indentation.