public function Twig_ExpressionParser::parseMultitargetExpression

File

drupal/core/vendor/twig/twig/lib/Twig/ExpressionParser.php, line 531

Class

Twig_ExpressionParser
Parses expressions.

Code

public function parseMultitargetExpression() {
  $targets = array();
  while (true) {
    $targets[] = $this
      ->parseExpression();
    if (!$this->parser
      ->getStream()
      ->test(Twig_Token::PUNCTUATION_TYPE, ',')) {
      break;
    }
    $this->parser
      ->getStream()
      ->next();
  }
  return new Twig_Node($targets);
}