mirror of
https://github.com/phabelio/PHP-Parser.git
synced 2024-12-02 17:38:19 +01:00
1cecf9efc5
Only add this method in 1.0, to avoid any BC breaks.
22 lines
462 B
PHP
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);
|
|
}
|
|
|