Lines Matching refs:parent
70 $parent = $this->createNamespaceNode($this->namespace, noNS($this->namespace));
71 $parent->setParent($this->top);
78 $parent = $this->top;
82 if ($parent instanceof Top || $this->applyRecursionDecision($parent, 0)) {
84 $this->createHierarchy($parent, $dir, $this->maxdepth);
88 if (!$parent instanceof Top) {
89 $this->addNodeToHierarchy($this->top, $parent);
96 * @param AbstractNode $parent results are added as children to this element
101 protected function createHierarchy(AbstractNode $parent, string $dir, int $depth) argument
105 $this->processNamespaces($parent, $dir, $depth);
110 $this->processPages($parent, $dir);
117 * @param AbstractNode $parent Parent node to add children to
122 protected function processNamespaces(AbstractNode $parent, string $dir, int $depth) argument
140 $this->addNodeToHierarchy($parent, $node);
167 * @param AbstractNode $parent Parent node to add children to
171 protected function processPages(AbstractNode $parent, string $dir) argument
189 $this->addNodeToHierarchy($parent, $page);
196 * @param AbstractNode $parent Parent node
200 protected function addNodeToHierarchy(AbstractNode $parent, AbstractNode $node): void argument
202 $node->setParent($parent); // set the parent even when not added, yet
205 $parent->addChild($node);
246 return parent::applyRecursionDecision($node, $depth);
256 return parent::applyNodeProcessor($node);