php-parser/lib/PHPParser/NodeTraverserInterface.php
nikic 1cecf9efc5 Revert change to NodeTraverserInterface
Only add this method in 1.0, to avoid any BC breaks.
2014-07-23 20:21:42 +02:00

22 lines
462 B
PHP

<?php
interface PHPParser_NodeTraverserInterface
{
/**
* Adds a visitor.
*
* @param PHPParser_NodeVisitor $visitor Visitor to add
*/
function addVisitor(PHPParser_NodeVisitor $visitor);
/**
* Traverses an array of nodes using the registered visitors.
*
* @param PHPParser_Node[] $nodes Array of nodes
*
* @return PHPParser_Node[] Traversed array of nodes
*/
function traverse(array $nodes);
}