public function removeVariable($name)
    {
        $exec = $this;
        
        while ($exec !== null) {
            if ($exec->isScope()) {
                $exec->removeVariableLocal($name);
            }
            
            if ($exec->isScopeRoot()) {
                break;
            }
            
            $exec = $exec->getParentExecution();
        }
    }