mirror of
https://github.com/phabelio/PHP-Parser.git
synced 2024-12-04 02:17:56 +01:00
29 lines
624 B
PHP
29 lines
624 B
PHP
<?php
|
|
|
|
interface PHPParser_NodeTraverserInterface
|
|
{
|
|
/**
|
|
* Adds a visitor.
|
|
*
|
|
* @param PHPParser_NodeVisitor $visitor Visitor to add
|
|
*/
|
|
function addVisitor(PHPParser_NodeVisitor $visitor);
|
|
|
|
/**
|
|
* Removes an added visitor.
|
|
*
|
|
* @param PHPParser_NodeVisitor $visitor
|
|
*/
|
|
function removeVisitor(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);
|
|
}
|
|
|