public function leaveNode(Node $node)
{
$this->node = $node;
foreach ($this->changes as $change) {
$change->leaveNode($node);
}
// Pop current stack
if ($node instanceof Stmt\ClassLike) {
$this->class = array_pop($this->classStack);
} elseif ($node instanceof FunctionLike) {
$this->function = array_pop($this->funcStack);
}
$this->node = null;
}