Home
last modified time | relevance | path

Searched refs:mode (Results 1 – 10 of 10) sorted by relevance

/PHP-Parser/test/PhpParser/
H A DCodeTestParser.php29 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 DCodeTestAbstract.php17 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 DPrettyPrinterTest.php40 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 DUPGRADE-3.0.md9 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 DUPGRADE-4.0.md17 comparisons or strict-mode may require adjustment. The following is an exhaustive list of all
H A DCHANGELOG.md768 * 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 DUPGRADE-5.0.md23 …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 DPretty_printing.markdown4 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 D0_Introduction.markdown42 error. In error recovery mode, it is possible to continue parsing after such declarations.
H A D2_Usage_of_basic_components.markdown266 There is also a pretty-printing mode which retains formatting for parts of the AST that have not

Completed in 31 milliseconds