Home
last modified time | relevance | path

Searched refs:stack (Results 1 – 2 of 2) sorted by relevance

/PHP-Parser/lib/PhpParser/NodeVisitor/
H A DParentConnectingVisitor.php21 private array $stack = []; variable in PhpParser\\NodeVisitor\\ParentConnectingVisitor
24 $this->stack = [];
28 if (!empty($this->stack)) {
29 $node->setAttribute('parent', $this->stack[count($this->stack) - 1]);
32 $this->stack[] = $node;
36 array_pop($this->stack);
H A DNodeConnectingVisitor.php21 private array $stack = []; variable in PhpParser\\NodeVisitor\\NodeConnectingVisitor
29 $this->stack = [];
34 if (!empty($this->stack)) {
35 $node->setAttribute('parent', $this->stack[count($this->stack) - 1]);
43 $this->stack[] = $node;
49 array_pop($this->stack);

Completed in 6 milliseconds