pub fn add_scope(&mut self, scope: Scope) {
        use std::collections::hash_map::Entry;
        match self.scopes.entry(scope.node_id) {
            Entry::Occupied(e) => {
                e.into_mut().merge(scope);
            }
            Entry::Vacant(e) => {
                e.insert(scope);
            }
        }
    }
/// Add a scope to the symbol table. If a scope with the same node ID
/// already exists, the new scope's contents are merged into the existing
/// scope. This allows for gradual extension of the contents of a scope.
/// Useful for populating library scopes.
Add a scope to the symbol table. If a scope with the same node ID
already exists, the new scope's contents are merged into the existing
scope. This allows for gradual extension of the contents of a scope.
Useful for populating library scopes.
Add a scope to the symbol table . If a scope with the same node ID already exists the new scope ' s contents are merged into the existing scope . This allows for gradual extension of the contents of a scope . Useful for populating library scopes .
pub fn add_scope(&mut self, scope: Scope) {
        use std::collections::hash_map::Entry;
        match self.scopes.entry(scope.node_id) {
            Entry::Occupied(e) => {
                e.into_mut().merge(scope);
            }
            Entry::Vacant(e) => {
                e.insert(scope);
            }
        }
    }
pub fn add_scope ( & mut self , scope : Scope ) { use std :: collections :: hash_map :: Entry ; match self . scopes . entry ( scope . node_id ) { Entry :: Occupied ( e ) => { e . into_mut ( ) . merge ( scope ) ; } Entry :: Vacant ( e ) => { e . insert ( scope ) ; } } }
Add a scope to the symbol table.
Add a scope to the symbol table .
&mut self
scope
Scope
&mut self
scope
Scope