fn resolve_identifier(&mut self,
                              identifier: Ident,
                              namespace: Namespace,
                              check_ribs: bool,
                              span: Span)
                              -> Option<(Def, LastPrivate)> {
        if check_ribs {
            match self.resolve_identifier_in_local_ribs(identifier,
                                                      namespace,
                                                      span) {
                Some(def) => {
                    return Some((def, AllPublic));
                }
                None => {
                    // Continue.
                }
            }
        }

        return self.resolve_item_by_identifier_in_lexical_scope(identifier,
                                                                namespace);
    }
// resolve a single identifier (used as a varref)
resolve a single identifier (used as a varref)
resolve a single identifier ( used as a varref )
fn resolve_identifier(&mut self,
                              identifier: Ident,
                              namespace: Namespace,
                              check_ribs: bool,
                              span: Span)
                              -> Option<(Def, LastPrivate)> {
        if check_ribs {
            match self.resolve_identifier_in_local_ribs(identifier,
                                                      namespace,
                                                      span) {
                Some(def) => {
                    return Some((def, AllPublic));
                }
                None => {
                    // Continue.
                }
            }
        }
        return self.resolve_item_by_identifier_in_lexical_scope(identifier,
                                                                namespace);
    }
fn resolve_identifier ( & mut self , identifier : Ident , namespace : Namespace , check_ribs : bool , span : Span ) -> Option < ( Def , LastPrivate ) > { if check_ribs { match self . resolve_identifier_in_local_ribs ( identifier , namespace , span ) { Some ( def ) => { return Some ( ( def , AllPublic ) ) ; } None => { // Continue. } } } return self . resolve_item_by_identifier_in_lexical_scope ( identifier , namespace ) ; }
resolve a single identifier (used as a varref)
resolve a single identifier ( used as a varref )
&mut self
identifier
Ident
namespace
Namespace
check_ribs
bool
span
Span
&mut self
identifier
Ident
namespace
Namespace
check_ribs
bool
span
Span