public void leaveBlock() {
            NamedVariable currentVariable;
            while ((currentVariable = variables.pop()) != null) {
                currentVariable.scope.setLast(code.currentIndex());
            }
        }