1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-10 15:09:04 +01:00
psalm/src/Psalm/Internal/PhpVisitor/NodeCounterVisitor.php
2022-12-13 20:46:43 -06:00

21 lines
293 B
PHP

<?php
namespace Psalm\Internal\PhpVisitor;
use PhpParser;
/**
* @internal
*/
class NodeCounterVisitor extends PhpParser\NodeVisitorAbstract
{
public int $count = 0;
public function enterNode(PhpParser\Node $node): ?int
{
$this->count++;
return null;
}
}