fn decrease_scope_depth(&mut self, chunk: &mut Chunk) {
        while self.locals.len() > 0
            && (self.locals.last().unwrap().depth == self.scope_depth)
        {
            chunk.add_opcode(OpCode::PopLocalVar);
            self.locals.pop();
        }
        self.scope_depth = self.scope_depth - 1;
    }
/// Decreases the scope depth.  This adds appropriate pop opcodes
/// for dealing with local variables that will no longer be in use
/// after the scope depth is decreased.
Decreases the scope depth.  This adds appropriate pop opcodes
for dealing with local variables that will no longer be in use
after the scope depth is decreased.
Decreases the scope depth . This adds appropriate pop opcodes for dealing with local variables that will no longer be in use after the scope depth is decreased .
fn decrease_scope_depth(&mut self, chunk: &mut Chunk) {
        while self.locals.len() > 0
            && (self.locals.last().unwrap().depth == self.scope_depth)
        {
            chunk.add_opcode(OpCode::PopLocalVar);
            self.locals.pop();
        }
        self.scope_depth = self.scope_depth - 1;
    }
fn decrease_scope_depth ( & mut self , chunk : & mut Chunk ) { while self . locals . len ( ) > 0 && ( self . locals . last ( ) . unwrap ( ) . depth == self . scope_depth ) { chunk . add_opcode ( OpCode :: PopLocalVar ) ; self . locals . pop ( ) ; } self . scope_depth = self . scope_depth - 1 ; }
Decreases the scope depth.
Decreases the scope depth .
&mut self
chunk
&mut Chunk