public function traverseFile(array $nodes, $filename)
    {
        // Set the correct state on each visitor
        foreach ($this->visitors as $visitor) {
            if ($visitor instanceof AbstractNodeVisitor) {
                $visitor->setFilename($filename);
            }
        }

        return $this->traverse($nodes);
    }
public function traverseFile(array $nodes, $filename)
    {
        // Set the correct state on each visitor
        foreach ($this->visitors as $visitor) {
            if ($visitor instanceof AbstractNodeVisitor) {
                $visitor->setFilename($filename);
            }
        }

        return $this->traverse($nodes);
    }
public function traverseFile ( array $ nodes , $ filename ) { // Set the correct state on each visitor foreach ( $ this -> visitors as $ visitor ) { if ( $ visitor instanceof AbstractNodeVisitor ) { $ visitor -> setFilename ( $ filename ) ; } } return $ this -> traverse ( $ nodes ) ; }
Transverse the file.

@param array  $nodes
@param string $filename

@return \PhpParser\Node[]
Transverse the file .