AbstractInterface
Methods |
public abstract prettyPrint(array $stmts) : string Pretty prints an array of statements.
|
public abstract prettyPrintExpr(PhpParser Pretty prints an expression.
|
public abstract prettyPrintFile(array $stmts) : string Pretty prints a file of statements (includes the opening tag if it is required).
|
public abstract printFormatPreserving(array $stmts, array $origStmts, array $origTokens) : 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:
|