Example #1
0
 /**
  * This method parses a continue-statement node.
  *
  * @return PHP_Depend_Code_ASTContinueStatement
  * @since 0.9.12
  */
 private function parseContinueStatement()
 {
     $this->tokenStack->push();
     $token = $this->consumeToken(self::T_CONTINUE);
     $stmt = $this->builder->buildAstContinueStatement($token->image);
     if (($expr = $this->parseOptionalExpression()) != null) {
         $stmt->addChild($expr);
     }
     $this->parseStatementTermination();
     return $this->setNodePositionsAndReturn($stmt);
 }