1
0
mirror of https://github.com/danog/PHP-Parser.git synced 2024-11-26 20:04:48 +01:00

Add note about prettyPrintFile() to docs

This commit is contained in:
nikic 2014-04-19 22:30:20 +02:00
parent e4e56511b9
commit 8499696021

View File

@ -164,6 +164,9 @@ again converted to code using `PhpParser\PrettyPrinter\Standard->prettyPrint()`.
The `prettyPrint()` method pretty prints a statements array. It is also possible to pretty print only a
single expression using `prettyPrintExpr()`.
The `prettyPrintFile()` method can be used to print an entire file. This will include the opening `<?php` tag and handle
inline HTML as the first/last sentence more gracefully.
Node traversation
-----------------