private function parseNamespace($loc): string
    {
        $tokens = $this->getTokenStream();
        $ns     = '';

        if (\in_array($this->tokens->type($loc), [T_FUNCTION, T_CONST])) {
            $ns .= $this->tokens->value($loc) . ' ';
            $loc = $tokens->next($loc);
        }

        while (\in_array($tokens->type($loc), [T_NS_SEPARATOR, T_STRING])) {
            $ns .= $tokens->value($loc);
            $loc = $tokens->next($loc);
        }

        return $ns;
    }