Searched refs:previous (Results 1 – 8 of 8) sorted by relevance
/PHP-Parser/lib/PhpParser/NodeVisitor/ |
H A D | NodeConnectingVisitor.php | 28 private $previous; variable in PhpParser\\NodeVisitor\\NodeConnectingVisitor 38 $this->previous = null; 51 if ($this->previous !== null) { 55 … if ($this->previous->getAttribute('weak_parent') === $node->getAttribute('weak_parent')) { 56 $node->setAttribute('weak_previous', \WeakReference::create($this->previous)); 57 $this->previous->setAttribute('weak_next', \WeakReference::create($node)); 59 } elseif ($this->previous->getAttribute('parent') === $node->getAttribute('parent')) { 60 $node->setAttribute('previous', $this->previous); 61 $this->previous->setAttribute('next', $node); 69 $this->previous = $node;
|
/PHP-Parser/doc/component/ |
H A D | FAQ.markdown | 5 …* [How can the next/previous sibling of a node be obtained?](#how-can-the-nextprevious-sibling-of-… 28 How can the next/previous sibling of a node be obtained? 32 the previous / next node with a common parent as well: 49 the previous node can be obtained through `$node->getAttribute('previous')`, and the next node can … 66 the previous node can be obtained through `$node->getAttribute('weak_previous')`, and the next node…
|
H A D | Lexer.markdown | 16 previous versions. The `PhpParser\Token` class either extends `PhpToken` (on PHP 8.0) or a polyfill… 22 …`T_NAME_RELATIVE` tokens, rather than the previous representation using a sequence of `T_STRING` a…
|
H A D | Walking_the_AST.markdown | 128 recursion. For example, let's take the previous code sample and use enterNode instead:
|
/PHP-Parser/ |
H A D | UPGRADE-5.0.md | 156 It is possible to convert the name to the previous representation using `$name->getParts()`. The 322 To follow the previous behavior, an `Identifier` should be passed, which indicates a built-in type. 326 …ng style conventions (and in particular PSR-12). Options to restore the previous behavior are not …
|
H A D | UPGRADE-3.0.md | 85 It is possible to restore the precise previous behavior with the following code:
|
H A D | CHANGELOG.md | 536 * As a result of the previous change, some whitespace issues when inserting a statement into a 913 * Fixed the spelling of `Class_::VISIBILITY_MODIFIER_MASK`. The previous spelling of 1158 * The pretty printer takes all the new attributes mentioned in the previous section into account.
|
/PHP-Parser/doc/ |
H A D | 2_Usage_of_basic_components.markdown | 94 For the sample code from the previous section, this will produce the following output:
|
Completed in 12 milliseconds