PHP 8.3.31
Preview: PrettyPrinter.php Size: 1.66 KB
/proc/self/root/home/getspomw/itechservicellc.com/vendor/nikic/php-parser/lib/PhpParser/PrettyPrinter.php

<?php declare(strict_types=1);

namespace PhpParser;

use PhpParser\Node\Expr;

interface PrettyPrinter {
    /**
     * Pretty prints an array of statements.
     *
     * @param Node[] $stmts Array of statements
     *
     * @return string Pretty printed statements
     */
    public function prettyPrint(array $stmts): string;

    /**
     * Pretty prints an expression.
     *
     * @param Expr $node Expression node
     *
     * @return string Pretty printed node
     */
    public function prettyPrintExpr(Expr $node): string;

    /**
     * Pretty prints a file of statements (includes the opening <?php tag if it is required).
     *
     * @param Node[] $stmts Array of statements
     *
     * @return string Pretty printed statements
     */
    public function prettyPrintFile(array $stmts): string;

    /**
     * Perform a format-preserving pretty print of an AST.
     *
     * The format preservation is best effort. For some changes to the AST the formatting will not
     * be preserved (at least not locally).
     *
     * In order to use this method a number of prerequisites must be satisfied:
     *  * The startTokenPos and endTokenPos attributes in the lexer must be enabled.
     *  * The CloningVisitor must be run on the AST prior to modification.
     *  * The original tokens must be provided, using the getTokens() method on the lexer.
     *
     * @param Node[] $stmts Modified AST with links to original AST
     * @param Node[] $origStmts Original AST with token offset information
     * @param Token[] $origTokens Tokens of the original code
     */
    public function printFormatPreserving(array $stmts, array $origStmts, array $origTokens): string;
}

Directory Contents

Dirs: 9 × Files: 28

Name Size Perms Modified Actions
Builder DIR
- drwxr-xr-x 2025-11-18 19:24:02
Edit Download
Comment DIR
- drwxr-xr-x 2025-11-18 19:24:02
Edit Download
- drwxr-xr-x 2025-11-18 19:24:02
Edit Download
Internal DIR
- drwxr-xr-x 2025-11-18 19:24:02
Edit Download
Lexer DIR
- drwxr-xr-x 2025-11-18 19:24:02
Edit Download
Node DIR
- drwxr-xr-x 2025-11-18 19:24:04
Edit Download
- drwxr-xr-x 2025-11-18 19:24:04
Edit Download
Parser DIR
- drwxr-xr-x 2025-11-18 19:24:04
Edit Download
- drwxr-xr-x 2025-11-18 19:24:04
Edit Download
202 B lrw-r--r-- 2025-10-28 20:23:04
Edit Download
10.30 KB lrw-r--r-- 2025-10-28 20:23:04
Edit Download
9.73 KB lrw-r--r-- 2025-10-28 20:23:04
Edit Download
6.75 KB lrw-r--r-- 2025-10-28 20:23:04
Edit Download
2.39 KB lrw-r--r-- 2025-10-28 20:23:04
Edit Download
112 B lrw-r--r-- 2025-10-28 20:23:04
Edit Download
9.21 KB lrw-r--r-- 2025-10-28 20:23:04
Edit Download
4.84 KB lrw-r--r-- 2025-10-28 20:23:04
Edit Download
300 B lrw-r--r-- 2025-10-28 20:23:04
Edit Download
3.44 KB lrw-r--r-- 2025-10-28 20:23:04
Edit Download
4.26 KB lrw-r--r-- 2025-10-28 20:23:04
Edit Download
2.71 KB lrw-r--r-- 2025-10-28 20:23:04
Edit Download
9.82 KB lrw-r--r-- 2025-10-28 20:23:04
Edit Download
4.03 KB lrw-r--r-- 2025-10-28 20:23:04
Edit Download
5.24 KB lrw-r--r-- 2025-10-28 20:23:04
Edit Download
10.24 KB lrw-r--r-- 2025-10-28 20:23:04
Edit Download
2.55 KB lrw-r--r-- 2025-10-28 20:23:04
Edit Download
10.09 KB lrw-r--r-- 2025-10-28 20:23:04
Edit Download
598 B lrw-r--r-- 2025-10-28 20:23:04
Edit Download
4.08 KB lrw-r--r-- 2025-10-28 20:23:04
Edit Download
447 B lrw-r--r-- 2025-10-28 20:23:04
Edit Download
765 B lrw-r--r-- 2025-10-28 20:23:04
Edit Download
50.13 KB lrw-r--r-- 2025-10-28 20:23:04
Edit Download
1.41 KB lrw-r--r-- 2025-10-28 20:23:04
Edit Download
4.62 KB lrw-r--r-- 2025-10-28 20:23:04
Edit Download
1.66 KB lrw-r--r-- 2025-10-28 20:23:04
Edit Download
70.38 KB lrw-r--r-- 2025-10-28 20:23:04
Edit Download
487 B lrw-r--r-- 2025-10-28 20:23:04
Edit Download

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