<?php
declare(strict_types=1);
namespace League\CommonMark\Node;
use League\CommonMark\Node\Block\AbstractBlock;
final class NodeWalker
{
private Node $root;
private ?Node $current = null;
private bool $entering;
public function __construct(Node $root)
{
$this->root = $root;
$this->current = $this->root;
$this->entering = true;
}
public function next(): ?NodeWalkerEvent
{