Home
last modified time | relevance | path

Searched refs:options (Results 1 – 15 of 15) sorted by relevance

/PHP-Parser/grammar/
H A DrebuildParsers.php22 $options = array_flip($argv); variable
23 $optionDebug = isset($options['--debug']);
24 $optionKeepTmpGrammar = isset($options['--keep-tmp-grammar']);
H A DREADME.md21 Run `php grammar/rebuildParsers.php` to rebuild the parsers. Additional options:
/PHP-Parser/test_old/
H A Drun.php35 $options = array(); variable
48 $options[$name] = $parts[1] ?? true;
58 $showProgress = !isset($options['--no-progress']);
59 $verbose = isset($options['--verbose']);
60 $phpVersion = $options['--php-version'] ?? '8.0';
/PHP-Parser/test/PhpParser/
H A DPrettyPrinterTest.php17 private function createParserAndPrinter(array $options): array { argument
18 $parserVersion = $options['parserVersion'] ?? $options['version'] ?? null;
19 $printerVersion = $options['version'] ?? null;
20 $indent = isset($options['indent']) ? json_decode($options['indent']) : null;
/PHP-Parser/lib/PhpParser/
H A DNodeDumper.php42 * @param array $options Options (see description)
44 public function __construct(array $options = []) { argument
45 $this->dumpComments = !empty($options['dumpComments']);
46 $this->dumpPositions = !empty($options['dumpPositions']);
47 $this->dumpOtherAttributes = !empty($options['dumpOtherAttributes']);
H A DPrettyPrinterAbstract.php192 public function __construct(array $options = []) { argument
193 $this->phpVersion = $options['phpVersion'] ?? PhpVersion::fromComponents(7, 4);
195 $this->newline = $options['newline'] ?? "\n";
201 $options['shortArraySyntax'] ?? $this->phpVersion->supportsShortArraySyntax();
205 $this->indent = $indent = $options['indent'] ?? ' ';
/PHP-Parser/lib/PhpParser/NodeVisitor/
H A DNameResolver.php37 public function __construct(?ErrorHandler $errorHandler = null, array $options = []) { argument
39 $this->preserveOriginalNames = $options['preserveOriginalNames'] ?? false;
40 $this->replaceNodes = $options['replaceNodes'] ?? true;
/PHP-Parser/doc/
H A DREADME.md21 * Name resolver options
H A D2_Usage_of_basic_components.markdown49 The `createXYZ()` methods optionally accept an array of lexer options. Some use cases that require
50 customized lexer options are discussed in the [lexer documentation](component/Lexer.markdown).
/PHP-Parser/
H A DUPGRADE-3.0.md130 ### Removed methods, arguments, options
132 The following methods, arguments or options have been removed:
H A DREADME.md205 * Name resolver options
H A Dphpstan-baseline.neon114 …message: "#^Method PhpParser\\\\NodeDumper\\:\\:__construct\\(\\) has parameter \\$options with no…
H A DUPGRADE-5.0.md30 * The `PhpParser\ParserFactory::ONLY_PHP5` and `PREFER_PHP5` options have been removed.
495 … been moved from the lexer to the parser. The lexer no longer accepts an options array. The `usedA…
H A DCHANGELOG.md138 * The `Lexer` no longer accepts options. `Lexer\Emulative` only accepts a `PhpVersion`. The
1133 * Added `-h` and `--help` options to `php-parse` script.
/PHP-Parser/doc/component/
H A DPretty_printing.markdown35 integer should be printed as decimal, hexadecimal, etc). Additionally, it supports three options:

Completed in 23 milliseconds