PDepend\Source\Language\PHP\AbstractPHPParser::parseThrowStatement PHP Method

parseThrowStatement() private method

This method parses a throw-statement.
Since: 0.9.12
private parseThrowStatement ( ) : PDepend\Source\AST\ASTThrowStatement
return PDepend\Source\AST\ASTThrowStatement
    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);
    }
AbstractPHPParser