protected function addTemplateArguments(Twig_Compiler $compiler) {
if (false === $this
->getAttribute('only')) {
if (null === $this
->getNode('variables')) {
$compiler
->raw('$context');
}
else {
$compiler
->raw('array_merge($context, ')
->subcompile($this
->getNode('variables'))
->raw(')');
}
}
else {
if (null === $this
->getNode('variables')) {
$compiler
->raw('array()');
}
else {
$compiler
->subcompile($this
->getNode('variables'));
}
}
}