PHP 8.2.31
Preview: CloningVisitor.php Size: 506 B
//opt/cpanel/ea-wappspector/vendor/rector/rector/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: 6

Name Size Perms Modified Actions
506 B lrw-r--r-- 2024-11-08 13:59:10
Edit Download
1.11 KB lrw-r--r-- 2024-11-08 13:59:10
Edit Download
1.21 KB lrw-r--r-- 2024-11-08 13:59:10
Edit Download
9.67 KB lrw-r--r-- 2024-11-08 13:59:10
Edit Download
1.36 KB lrw-r--r-- 2024-11-08 13:59:10
Edit Download
861 B lrw-r--r-- 2024-11-08 13:59:10
Edit Download

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