Lines Matching defs:children
160 public function children(): iterable
162 $children = [];
164 $children[] = $current;
167 return $children;
200 foreach ($this->children() as $children) {
201 $children->setParent(null);
208 * Replace all children of given node with collection of another
210 * @param iterable<Node> $children
212 public function replaceChildren(iterable $children): void
215 foreach ($children as $item) {
236 * Clone the current node and its children
242 // Cloned nodes are detached from their parents, siblings, and children
246 // But save a copy of the children since we'll need that in a moment
247 $children = $this->children();
250 // The original children get cloned and re-added
251 foreach ($children as $child) {