public function visitBefore(Node $node): void
    {
        parent::visitBefore($node);

        foreach ($this->visitors as $visitor) {
            $visitor->visitBefore($node);
        }
    }
public function visitBefore(Node $node): void
    {
        parent::visitBefore($node);

        foreach ($this->visitors as $visitor) {
            $visitor->visitBefore($node);
        }
    }
public function visitBefore ( Node $ node ) : void { parent :: visitBefore ( $ node ) ; foreach ( $ this -> visitors as $ visitor ) { $ visitor -> visitBefore ( $ node ) ; } }
Delegate visit before to registered visitors
Delegate visit before to registered visitors