Esempio n. 1
0
 /**
  * This method parses a throw-statement.
  *
  * @return \PDepend\Source\AST\ASTThrowStatement
  * @since  0.9.12
  */
 private function parseThrowStatement()
 {
     $this->tokenStack->push();
     $token = $this->consumeToken(Tokens::T_THROW);
     $stmt = $this->builder->buildAstThrowStatement($token->image);
     $stmt->addChild($this->parseExpression());
     $this->parseStatementTermination();
     return $this->setNodePositionsAndReturn($stmt);
 }