PATH:
opt
/
cpanel
/
ea-wappspector
/
vendor
/
nikic
/
php-parser
/
lib
/
PhpParser
<?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; }
[+]
Builder
[-] NodeVisitorAbstract.php
[edit]
[+]
NodeVisitor
[-] ParserFactory.php
[edit]
[-] NodeVisitor.php
[edit]
[+]
Parser
[+]
Lexer
[-] NodeAbstract.php
[edit]
[+]
..
[-] BuilderHelpers.php
[edit]
[-] Modifiers.php
[edit]
[+]
PrettyPrinter
[+]
Internal
[-] Node.php
[edit]
[-] ErrorHandler.php
[edit]
[-] PrettyPrinter.php
[edit]
[-] Parser.php
[edit]
[-] Builder.php
[edit]
[-] ParserAbstract.php
[edit]
[-] Token.php
[edit]
[-] BuilderFactory.php
[edit]
[-] PrettyPrinterAbstract.php
[edit]
[-] PhpVersion.php
[edit]
[-] ConstExprEvaluator.php
[edit]
[-] Comment.php
[edit]
[-] ConstExprEvaluationException.php
[edit]
[-] JsonDecoder.php
[edit]
[-] NameContext.php
[edit]
[-] NodeFinder.php
[edit]
[-] compatibility_tokens.php
[edit]
[+]
ErrorHandler
[+]
Comment
[-] Lexer.php
[edit]
[-] NodeTraverserInterface.php
[edit]
[+]
Node
[-] NodeDumper.php
[edit]
[-] NodeTraverser.php
[edit]
[-] Error.php
[edit]