protected function recordDoc(array $comments)
    {
        $callable = $this->phpdocFactory;

        foreach ($comments as $comment) {
            if ($comment instanceof Doc) {
                $this->doc[] = $callable($comment->getText(), $this->context);
            }
        }
    }
protected function recordDoc(array $comments)
    {
        $callable = $this->phpdocFactory;

        foreach ($comments as $comment) {
            if ($comment instanceof Doc) {
                $this->doc[] = $callable($comment->getText(), $this->context);
            }
        }
    }
protected function recordDoc ( array $ comments ) { $ callable = $ this -> phpdocFactory ; foreach ( $ comments as $ comment ) { if ( $ comment instanceof Doc ) { $ this -> doc [ ] = $ callable ( $ comment -> getText ( ) , $ this -> context ) ; } } }
Reset the visitor context.

@param \PhpParser\Comment[] $comments

@return void
Reset the visitor context .