lib/Languages/Galach/Parser.php
private function collectTopStackNodes()
    {
        $nodes = [];

        while (!$this->stack->isEmpty() && $this->stack->top() instanceof Node) {
            array_unshift($nodes, $this->stack->pop());
        }

        return $nodes;
    }
private function collectTopStackNodes()
    {
        $nodes = [];

        while (!$this->stack->isEmpty() && $this->stack->top() instanceof Node) {
            array_unshift($nodes, $this->stack->pop());
        }

        return $nodes;
    }
private function collectTopStackNodes ( ) { $ nodes = [ ] ; while ( ! $ this -> stack -> isEmpty ( ) && $ this -> stack -> top ( ) instanceof Node ) { array_unshift ( $ nodes , $ this -> stack -> pop ( ) ) ; } return $ nodes ; }
Collect all Nodes from the top of the stack.

@return \QueryTranslator\Values\Node[]
Collect all Nodes from the top of the stack .