pub fn resolve(&self, name: &String) -> (Option<&Symbol>, bool) {
        match self.symbols.get(name) {
            Some(e) => (Some(e), self.parent.is_none()),
            None => match self.parent {
                Some(p) => p.resolve(name),
                None => (None, self.parent.is_none()),
            },
        }
    }
/// Resolves a variable
///
/// The second value is true if we resolved in the global scope
Resolves a variable
The second value is true if we resolved in the global scope
Resolves a variable The second value is true if we resolved in the global scope
pub fn resolve(&self, name: &String) -> (Option<&Symbol>, bool) {
        match self.symbols.get(name) {
            Some(e) => (Some(e), self.parent.is_none()),
            None => match self.parent {
                Some(p) => p.resolve(name),
                None => (None, self.parent.is_none()),
            },
        }
    }
pub fn resolve ( & self , name : & String ) -> ( Option < & Symbol > , bool ) { match self . symbols . get ( name ) { Some ( e ) => ( Some ( e ) , self . parent . is_none ( ) ) , None => match self . parent { Some ( p ) => p . resolve ( name ) , None => ( None , self . parent . is_none ( ) ) , } , } }
Resolves a variable
The second value is true if we resolved in the global scope
Resolves a variable The second value is true if we resolved in the global scope
&self
name
&String