Home
last modified time | relevance | path

Searched refs:parts (Results 1 – 25 of 27) sorted by relevance

12

/PHP-Parser/test/code/parser/scalar/
H A DencapsedString.test33 parts: array(
42 parts: array(
56 parts: array(
70 parts: array(
84 parts: array(
98 parts: array(
112 parts: array(
126 parts: array(
140 parts: array(
154 parts: array(
[all …]
H A DencapsedNegVarOffset.test13 parts: array(
27 parts: array(
41 parts: array(
55 parts: array(
69 parts: array(
H A DflexibleDocString.test168 parts: array(
202 parts: array(
228 parts: array(
240 parts: array(
252 parts: array(
264 parts: array(
279 parts: array(
297 parts: array(
318 parts: array(
331 parts: array(
[all …]
H A DunicodeEscape.test17 parts: array(
29 parts: array(
56 parts: array(
68 parts: array(
H A DdocString.test66 parts: array(
81 parts: array(
112 parts: array(
H A DflexibleDocStringErrors.test82 parts: array(
95 parts: array(
105 parts: array(
H A DdocStringNewlines.test36 parts: array(
66 parts: array(
/PHP-Parser/lib/PhpParser/Node/Expr/
H A DShellExec.php10 public array $parts; variable in PhpParser\\Node\\Expr\\ShellExec
15 * @param (Expr|InterpolatedStringPart)[] $parts Interpolated string array
18 public function __construct(array $parts, array $attributes = []) { argument
20 $this->parts = $parts;
/PHP-Parser/lib/PhpParser/Node/Scalar/
H A DInterpolatedString.php11 public array $parts; variable in PhpParser\\Node\\Scalar\\InterpolatedString
16 * @param (Expr|InterpolatedStringPart)[] $parts Interpolated string parts
19 public function __construct(array $parts, array $attributes = []) { argument
21 $this->parts = $parts;
/PHP-Parser/test/code/parser/expr/
H A DshellExec.test13 parts: array(
19 parts: array(
28 parts: array(
40 parts: array(
49 parts: array(
H A Dnullsafe.test58 parts: array(
72 parts: array(
/PHP-Parser/test/PhpParser/
H A DCodeTestParser.php19 $parts = preg_split("/\n-----(?:\n|$)/", $code);
22 $name = array_shift($parts);
25 $chunks = array_chunk($parts, $chunksPerTest);
38 foreach ($tests as list($mode, $parts)) {
39 $lastPart = array_pop($parts);
40 foreach ($parts as $part) {
H A DCodeTestAbstract.php17 foreach ($tests as $i => list($mode, $parts)) {
18 $dataSetName = $shortName . (count($parts) > 1 ? '#' . $i : '');
19 $allTests[$dataSetName] = array_merge([$name], $parts, [$mode]);
/PHP-Parser/test/code/formatPreservation/
H A DrewriteVariableInterpolationString.test6 $stmts[0]->expr->parts[0]->setAttribute('origNode', null);
H A Dbasic.test171 $stmts[0]->exprs[0]->parts[0] = new Expr\Variable('bar');
172 $stmts[1]->exprs[0]->parts[0] = new Expr\Variable('bar');
/PHP-Parser/test/code/parser/
H A DformattingAttributes.test123 parts: array(
138 parts: array(
149 parts: array(
210 parts: array(
231 parts: array(
/PHP-Parser/lib/PhpParser/Node/
H A DName.php184 $parts = \explode('\\', $this->name);
185 $numParts = \count($parts);
206 return new static(array_slice($parts, $realOffset, $realLength), $this->attributes);
/PHP-Parser/test/code/parser/expr/uvs/
H A Dmisc.test27 parts: array(
44 parts: array(
/PHP-Parser/test_old/
H A Drun.php37 $parts = explode('=', $arg); variable
38 $options[$parts[0]] = $parts[1] ?? true;
/PHP-Parser/
H A DUPGRADE-2.0.md72 * String parts of encapsed strings are now represented using `Scalar\EncapsStringPart` nodes, while
73 previously raw strings were used. This affects the `parts` child of `Scalar\Encaps` and
H A DUPGRADE-4.0.md59 extend the pretty printer). Previously indentation was automatic, and parts were excluded using
H A DUPGRADE-5.0.md150 Previously, `Name` nodes had a `parts` subnode, which stores an array of name parts, split by
153 For example, the name `Foo\Bar` was previously represented by `Name(parts: ['Foo', 'Bar'])` and is
475 it extends from a polyfill implementation. The most important parts of the interface may be summari…
H A DCHANGELOG.md126 * The `Name` subnode `parts` has been replaced by `name`, which stores the name as a string rather
127 than an array of parts separated by namespace separators. The `getParts()` method returns the old
416 * [PHP 8.0] Added support for keywords as parts of namespaced names.
717 preserved for parts of the code which have not been modified.
834 * `Name::$parts` is no longer deprecated.
1064 * Fixed reformatting of indented parts in a certain non-standard comment style.
1122 * String parts of encapsed strings are now represented using `Scalar\EncapsStringPart` nodes.
1123 Previously raw strings were used. This affects the `parts` child of `Scalar\Encaps` and
1125 parts.
/PHP-Parser/lib/PhpParser/PrettyPrinter/
H A DStandard.php178 if ($label && !$this->encapsedContainsEndLabel($node->parts, $label)) {
180 if (count($node->parts) === 1
181 && $node->parts[0] instanceof Node\InterpolatedStringPart
182 && $node->parts[0]->value === ''
187 return "<<<$label$nl" . $this->pEncapsList($node->parts, null)
191 return '"' . $this->pEncapsList($node->parts, '"') . '"';
647 return '`' . $this->pEncapsList($node->parts, '`') . '`';
1103 protected function encapsedContainsEndLabel(array $parts, string $label): bool { argument
1104 foreach ($parts as $i => $part) {
/PHP-Parser/doc/component/
H A DPretty_printing.markdown70 this, because it will also reformat parts of the code which have not been modified.

Completed in 44 milliseconds

12