Mercurial > hg > isophonics-drupal-site
annotate vendor/nikic/php-parser/lib/PhpParser/Parser.php @ 2:92f882872392
Trusted hosts, + remove migration modules
author | Chris Cannam |
---|---|
date | Tue, 05 Dec 2017 09:26:43 +0000 |
parents | 4c8ae668cc8c |
children | 5fb285c0d0e3 |
rev | line source |
---|---|
Chris@0 | 1 <?php |
Chris@0 | 2 |
Chris@0 | 3 namespace PhpParser; |
Chris@0 | 4 |
Chris@0 | 5 interface Parser { |
Chris@0 | 6 /** |
Chris@0 | 7 * Parses PHP code into a node tree. |
Chris@0 | 8 * |
Chris@0 | 9 * @param string $code The source code to parse |
Chris@0 | 10 * @param ErrorHandler|null $errorHandler Error handler to use for lexer/parser errors, defaults |
Chris@0 | 11 * to ErrorHandler\Throwing. |
Chris@0 | 12 * |
Chris@0 | 13 * @return Node[]|null Array of statements (or null if the 'throwOnError' option is disabled and the parser was |
Chris@0 | 14 * unable to recover from an error). |
Chris@0 | 15 */ |
Chris@0 | 16 public function parse($code, ErrorHandler $errorHandler = null); |
Chris@0 | 17 } |