15 parent::__construct(array(
'arguments' => $arguments), array(
'name' =>
$name,
'is_defined_test' =>
false),
$lineno);
26 $this->
setAttribute(
'needs_environment', $function->needsEnvironment());
27 $this->
setAttribute(
'needs_context', $function->needsContext());
28 $this->
setAttribute(
'arguments', $function->getArguments());
30 $callable = $function->getCallable();
32 $callable =
'twig_constant_is_defined';
37 if ($function instanceof Twig_SimpleFunction) {
38 $this->
setAttribute(
'is_variadic', $function->isVariadic());
45 class_alias(
'Twig_Node_Expression_Function',
'Twig\Node\Expression\FunctionExpression',
false);
Represents a node in the AST.
Represents a template function.
__construct($name, Twig_NodeInterface $arguments, $lineno)
getEnvironment()
Returns the environment instance related to this compiler.
setAttribute($name, $value)
Represents a callable template function.
compileCallable(Twig_Compiler $compiler)
compile(Twig_Compiler $compiler)
Compiles the node to PHP.