Lines Matching refs:Node
17 namespace League\CommonMark\Node;
22 abstract class Node
31 protected ?Node $parent = null;
34 protected ?Node $previous = null;
37 protected ?Node $next = null;
40 protected ?Node $firstChild = null;
43 protected ?Node $lastChild = null;
52 public function previous(): ?Node
57 public function next(): ?Node
62 public function parent(): ?Node
67 protected function setParent(?Node $node = null): void
76 public function insertAfter(Node $sibling): void
97 public function insertBefore(Node $sibling): void
115 public function replaceWith(Node $replacement): void
147 public function firstChild(): ?Node
152 public function lastChild(): ?Node
158 * @return Node[]
170 public function appendChild(Node $child): void
184 public function prependChild(Node $child): void
210 * @param iterable<Node> $children
256 public static function assertInstanceOf(Node $node): void