You are here

public function Twig_ExpressionParser::parseMultitargetExpression in Translation template extractor 6.3

Same name and namespace in other branches
  1. 7.3 vendor/Twig/ExpressionParser.php \Twig_ExpressionParser::parseMultitargetExpression()

File

vendor/Twig/ExpressionParser.php, line 530

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);
}