Esempio n. 1
0
 /**
  * Parses the update part of a for-statement.
  *
  * <code>
  *                                        -------------------------------
  * for ($x = 0, $y = 23, $z = 42; $x < $y; ++$x, $y = $x + 1, $z = $x + 2) {}
  *                                        -------------------------------
  * </code>
  *
  * @return PHP_Depend_Code_ASTForUpdate
  * @since 0.9.12
  */
 private function parseForUpdate()
 {
     $this->consumeComments();
     if (self::T_PARENTHESIS_CLOSE === $this->tokenizer->peek()) {
         return null;
     }
     $this->tokenStack->push();
     $update = $this->builder->buildAstForUpdate();
     $this->parseExpressionList($update);
     return $this->setNodePositionsAndReturn($update);
 }