php-parser/lib/PHPParser/NodeVisitorInterface.php
2011-08-09 09:28:58 +02:00

32 lines
627 B
PHP

<?php
interface PHPParser_NodeVisitorInterface
{
/**
* Called once before traversal.
*
* @param $node
*/
public function beforeTraverse(&$node);
/**
* Called when entering a node.
*
* @param PHPParser_NodeAbstract $node
*/
public function enterNode(PHPParser_NodeAbstract &$node);
/**
* Called when leaving a node.
*
* @param PHPParser_NodeAbstract $node
*/
public function leaveNode(PHPParser_NodeAbstract &$node);
/**
* Called once after traversal.
*
* @param $node
*/
public function afterTraverse(&$node);
}