name = $name; $this->parameter = $parameter; } public function accept(Ast\Visitor $visitor): void { if ($this->parameter instanceOf Ast\Node) { if ($visitor->visitEnter($this)) { $this->parameter->accept($visitor); $visitor->visitLeave($this); } } else { $visitor->visit($this); } } } }