Lines Matching refs:stack
35 * @var array Run stack
37 private $stack = [];
51 array_push($this->stack, [0, $this->getTree(), false]);
93 $topStack = array_pop($this->stack);
95 array_push($this->stack, $topStack);
105 return end($this->stack)[2];
123 $topTree = end($this->stack); // never pop a value from stack
141 array_push($this->stack, [0, $newStack, false]);
143 array_pop($this->stack);
148 array_push($this->stack, [0, $newStack, false]);
150 array_pop($this->stack);
177 $newStack = array_pop($this->stack);
180 array_push($this->stack, $newStack);
193 $topTree = end($this->stack); //This method never pop a value from stack
208 $newStack = array_pop($this->stack);
211 array_push($this->stack, $newStack);