Searched refs:mode (Results 1 – 10 of 10) sorted by relevance
/PHP-Parser/test/PhpParser/ |
H A D | CodeTestParser.php | 29 list($lastPart, $mode) = $this->extractMode($lastPart); 30 $tests[] = [$mode, array_merge($chunk, [$lastPart])]; 38 foreach ($tests as list($mode, $parts)) { 45 if (null !== $mode) { 46 $result .= "!!$mode\n";
|
H A D | CodeTestAbstract.php | 17 foreach ($tests as $i => list($mode, $parts)) { 19 $allTests[$dataSetName] = array_merge([$name], $parts, [$mode]); 32 foreach (explode(',', $modeLine) as $mode) { 33 $kv = explode('=', $mode, 2);
|
H A D | PrettyPrinterTest.php | 40 public function testPrettyPrint($name, $code, $expected, $mode): void { argument 41 $this->doTestPrettyPrintMethod('prettyPrint', $name, $code, $expected, $mode); 47 public function testPrettyPrintFile($name, $code, $expected, $mode): void { argument 48 $this->doTestPrettyPrintMethod('prettyPrintFile', $name, $code, $expected, $mode);
|
/PHP-Parser/ |
H A D | UPGRADE-3.0.md | 9 if you used the error recovery mode or have a custom lexer implementation. 39 ### Changes to error recovery mode 41 Previously, error recovery mode was enabled by setting the `throwOnError` option to `false` when 73 #### Multiple parser fallback in error recovery mode 77 parsing never throws in error recovery mode, the result from the first parser will always be
|
H A D | UPGRADE-4.0.md | 17 comparisons or strict-mode may require adjustment. The following is an exhaustive list of all
|
H A D | CHANGELOG.md | 768 * Added experimental support for format-preserving pretty-printing. In this mode formatting will be 1034 * Partial parsing of `$obj->` (with missing property name) is now supported in error recovery mode. 1035 * The error recovery mode is now exposed in the `php-parse` script through the `--with-recovery` 1137 * Invalid octal literals now throw a parse error in PHP 7 mode.
|
H A D | UPGRADE-5.0.md | 23 …re not supported in PHP 7 and will cause a parse error. In error recovery mode, it is possible to …
|
/PHP-Parser/doc/component/ |
H A D | Pretty_printing.markdown | 4 Pretty printing is the process of converting a syntax tree back to PHP code. In its basic mode of 7 to be rather picky about their code formatting, this mode of operation is not very suitable for 73 Since PHP-Parser 4.0, a formatting-preserving pretty-printing mode is available, which
|
/PHP-Parser/doc/ |
H A D | 0_Introduction.markdown | 42 error. In error recovery mode, it is possible to continue parsing after such declarations.
|
H A D | 2_Usage_of_basic_components.markdown | 266 There is also a pretty-printing mode which retains formatting for parts of the AST that have not
|
Completed in 31 milliseconds