        $stmts = $traverser->traverse($stmts);

        $globalClassTypes = $globalFunctions = [];
        foreach ($stmts as $stmt) {
            if ($stmt instanceof NamespaceStmt) {
                yield new NamespaceReflection(
                    $this->filePath(),
                    null !== $stmt->name ? $stmt->name->toString() : null,
                    $this->classTypes($stmt),
                    $this->functions($stmt),
                    false