Exemple #1
0
 public function accept(NodeVisitorInterface $visitor)
 {
     if (false !== $visitor->enterComment($this)) {
         if (false !== $visitor->enterCommentContent($this)) {
             $this->visitContent($visitor);
         }
         $visitor->leaveCommentContent($this);
         if (false !== $visitor->enterCommentChilds($this)) {
             $this->visitChilds($visitor);
         }
         $visitor->leaveCommentChilds($this);
     }
     $visitor->leaveComment($this);
 }