| 1 | <?php |
||
| 23 | class NodeStripper extends NodeVisitorAbstract |
||
| 24 | { |
||
| 25 | /** |
||
| 26 | * @var string Name of node to strip |
||
| 27 | */ |
||
| 28 | private $nodeType; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Register what nodes to strip using a fully quilified PhpParser class name |
||
| 32 | * |
||
| 33 | * @param string $nodeType Node type (see Node::getType()) |
||
| 34 | */ |
||
| 35 | public function __construct(string $nodeType) |
||
| 39 | |||
| 40 | public function leaveNode(Node $node) |
||
| 48 | } |
||
| 49 |