fn lookup_local(&mut self, name: Symbol, in_old: bool) -> Option<&LocalVarEntry> {
        let mut depth = self.local_table.len();
        for scope in &self.local_table {
            if let Some(entry) = scope.get(&name) {
                if depth <= self.outer_context_scopes {
                    // Account for access if this belongs to one of the outer scopes
                    // considered context (i.e. not declared in this expression).
                    self.accessed_locals.insert((name, in_old));
                }
                return Some(entry);
            }
            depth -= 1;
        }
        None
    }
/// Lookup a local in this translator.
Lookup a local in this translator.
Lookup a local in this translator .
fn lookup_local(&mut self, name: Symbol, in_old: bool) -> Option<&LocalVarEntry> {
        let mut depth = self.local_table.len();
        for scope in &self.local_table {
            if let Some(entry) = scope.get(&name) {
                if depth <= self.outer_context_scopes {
                    // Account for access if this belongs to one of the outer scopes
                    // considered context (i.e. not declared in this expression).
                    self.accessed_locals.insert((name, in_old));
                }
                return Some(entry);
            }
            depth -= 1;
        }
        None
    }
fn lookup_local ( & mut self , name : Symbol , in_old : bool ) -> Option < & LocalVarEntry > { let mut depth = self . local_table . len ( ) ; for scope in & self . local_table { if let Some ( entry ) = scope . get ( & name ) { if depth <= self . outer_context_scopes { // Account for access if this belongs to one of the outer scopes // considered context (i.e. not declared in this expression). self . accessed_locals . insert ( ( name , in_old ) ) ; } return Some ( entry ) ; } depth -= 1 ; } None }
Lookup a local in this translator.
Lookup a local in this translator .
&mut self
name
Symbol
in_old
bool
&mut self
name
Symbol
in_old
bool