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

parseRegularScope() private method

Parse a scope enclosed by curly braces.
Since: 0.9.12
private parseRegularScope ( ) : PDepend\Source\AST\ASTScope
return PDepend\Source\AST\ASTScope
    private function parseRegularScope()
    {
        $this->tokenStack->push();
        $this->consumeComments();
        $this->consumeToken(Tokens::T_CURLY_BRACE_OPEN);
        $scope = $this->parseScopeStatements();
        $this->consumeToken(Tokens::T_CURLY_BRACE_CLOSE);
        return $this->setNodePositionsAndReturn($scope);
    }
AbstractPHPParser