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

parseGlobalStatement() private method

This method parses a global-statement.
Since: 0.9.12
private parseGlobalStatement ( ) : PDepend\Source\AST\ASTGlobalStatement
return PDepend\Source\AST\ASTGlobalStatement
    private function parseGlobalStatement()
    {
        $this->tokenStack->push();
        $this->consumeToken(Tokens::T_GLOBAL);
        $stmt = $this->builder->buildAstGlobalStatement();
        $stmt = $this->parseVariableList($stmt);
        $this->parseStatementTermination();
        return $this->setNodePositionsAndReturn($stmt);
    }
AbstractPHPParser