public function enterNode(Node $node)
    {
        if ($node instanceof Namespace_) {
            $this->resetContext($node->name);
        }

        $this->recordDoc($node->getAttribute('comments', []));

        return $node;
    }
public function enterNode(Node $node)
    {
        if ($node instanceof Namespace_) {
            $this->resetContext($node->name);
        }

        $this->recordDoc($node->getAttribute('comments', []));

        return $node;
    }
public function enterNode ( Node $ node ) { if ( $ node instanceof Namespace_ ) { $ this -> resetContext ( $ node -> name ) ; } $ this -> recordDoc ( $ node -> getAttribute ( 'comments' , [ ] ) ) ; return $ node ; }
Enter the node and record the phpdoc.

@param \PhpParser\Node $node

@return \PhpParser\Node
Enter the node and record the phpdoc .