public function Twig_ExpressionParser::parseMultitargetExpression in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/twig/twig/lib/Twig/ExpressionParser.php \Twig_ExpressionParser::parseMultitargetExpression()
File
- vendor/
twig/ twig/ lib/ Twig/ ExpressionParser.php, line 555
Class
- Twig_ExpressionParser
- Parses expressions.
Code
public function parseMultitargetExpression() {
$targets = array();
while (true) {
$targets[] = $this
->parseExpression();
if (!$this->parser
->getStream()
->nextIf(Twig_Token::PUNCTUATION_TYPE, ',')) {
break;
}
}
return new Twig_Node($targets);
}