PHP 8.2.31
Preview: CloningVisitor.php Size: 502 B
//opt/cpanel/ea-wappspector/vendor/nikic/php-parser/lib/PhpParser/NodeVisitor/CloningVisitor.php

<?php declare(strict_types=1);

namespace PhpParser\NodeVisitor;

use PhpParser\Node;
use PhpParser\NodeVisitorAbstract;

/**
 * Visitor cloning all nodes and linking to the original nodes using an attribute.
 *
 * This visitor is required to perform format-preserving pretty prints.
 */
class CloningVisitor extends NodeVisitorAbstract {
    public function enterNode(Node $origNode) {
        $node = clone $origNode;
        $node->setAttribute('origNode', $origNode);
        return $node;
    }
}

Directory Contents

Dirs: 0 × Files: 7

Name Size Perms Modified Actions
502 B lrw-r--r-- 2025-12-06 11:56:16
Edit Download
2.71 KB lrw-r--r-- 2025-12-06 11:56:16
Edit Download
1.12 KB lrw-r--r-- 2025-12-06 11:56:16
Edit Download
1.22 KB lrw-r--r-- 2025-12-06 11:56:16
Edit Download
10.13 KB lrw-r--r-- 2025-12-06 11:56:16
Edit Download
2.27 KB lrw-r--r-- 2025-12-06 11:56:16
Edit Download
1.31 KB lrw-r--r-- 2025-12-06 11:56:16
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).