Lines Matching refs:parent
73 $parent = $this->createNamespaceNode($this->namespace, noNS($this->namespace));
74 $parent->setParent($this->top);
81 $parent = $this->top;
85 if ($parent instanceof Top || $this->applyRecursionDecision($parent, 0)) {
87 $this->createHierarchy($parent, $dir, $this->maxdepth);
91 if (!$parent instanceof Top) {
92 $this->addNodeToHierarchy($this->top, $parent);
99 * @param AbstractNode $parent results are added as children to this element
104 protected function createHierarchy(AbstractNode $parent, string $dir, int $depth) argument
108 $this->processNamespaces($parent, $dir, $depth);
113 $this->processPages($parent, $dir);
120 * @param AbstractNode $parent Parent node to add children to
125 protected function processNamespaces(AbstractNode $parent, string $dir, int $depth) argument
148 $this->addNodeToHierarchy($parent, $node);
175 * @param AbstractNode $parent Parent node to add children to
179 protected function processPages(AbstractNode $parent, string $dir) argument
202 $this->addNodeToHierarchy($parent, $page);
209 * @param AbstractNode $parent Parent node
213 protected function addNodeToHierarchy(AbstractNode $parent, AbstractNode $node): void argument
215 $node->setParent($parent); // set the parent even when not added, yet
218 $parent->addChild($node);
259 return parent::applyRecursionDecision($node, $depth);
269 return parent::applyNodeProcessor($node);