function ExpressionParser::createArguments
2 calls to ExpressionParser::createArguments()
- ExpressionParser::getFunctionNode in vendor/
twig/ twig/ src/ ExpressionParser.php - ExpressionParser::parseSubscriptExpressionDot in vendor/
twig/ twig/ src/ ExpressionParser.php
File
-
vendor/
twig/ twig/ src/ ExpressionParser.php, line 870
Class
- ExpressionParser
- Parses expressions.
Namespace
TwigCode
private function createArguments(int $line) : ArrayExpression {
$arguments = new ArrayExpression([], $line);
foreach ($this->parseOnlyArguments() as $k => $n) {
$arguments->addElement($n, new LocalVariable($k, $line));
}
return $arguments;
}