fn insert_item_into_current(&mut self, name: Identifier, item: ScopeItem) {
        // Notice that we insert directly without caring about whether the name already exists
        // It's OK to overwrite existing names because we support rebinding
        let scope = self.stack.back_mut()
            .expect("Attempt to declare item despite having no current scope");
        scope.items.insert(name, item);
    }
/// Inserts a ScopeItem into the current scope
Inserts a ScopeItem into the current scope
Inserts a ScopeItem into the current scope
fn insert_item_into_current(&mut self, name: Identifier, item: ScopeItem) {
        // Notice that we insert directly without caring about whether the name already exists
        // It's OK to overwrite existing names because we support rebinding
        let scope = self.stack.back_mut()
            .expect("Attempt to declare item despite having no current scope");
        scope.items.insert(name, item);
    }
fn insert_item_into_current ( & mut self , name : Identifier , item : ScopeItem ) { // Notice that we insert directly without caring about whether the name already exists // It's OK to overwrite existing names because we support rebinding let scope = self . stack . back_mut ( ) . expect ( " " ) ; scope . items . insert ( name , item ) ; }
Inserts a ScopeItem into the current scope
Inserts a ScopeItem into the current scope
&mut self
name
Identifier
item
ScopeItem
&mut self
name
Identifier
item
ScopeItem