pub fn new_rename_internal(id: Ident,
                           to: Name,
                           tail: SyntaxContext,
                           table: &SCTable)
                           -> SyntaxContext {
    let key = (tail,id,to);
    // FIXME #5074
    //let try_lookup = table.rename_memo.find(&key);
    let mut rename_memo = table.rename_memo.borrow_mut();
    match rename_memo.get().contains_key(&key) {
        false => {
            let new_idx = {
                let mut table = table.table.borrow_mut();
                idx_push(table.get(), Rename(id,to,tail))
            };
            rename_memo.get().insert(key,new_idx);
            new_idx
        }
        true => {
            match rename_memo.get().find(&key) {
                None => fail!("internal error: key disappeared 2013042902"),
                Some(idxptr) => {*idxptr}
            }
        }
    }
}
// Extend a syntax context with a given rename and sctable
// FIXME #8215 : currently pub to allow testing
Extend a syntax context with a given rename and sctable
FIXME #8215 : currently pub to allow testing
Extend a syntax context with a given rename and sctable FIXME #8215 : currently pub to allow testing
pub fn new_rename_internal(id: Ident,
                           to: Name,
                           tail: SyntaxContext,
                           table: &SCTable)
                           -> SyntaxContext {
    let key = (tail,id,to);
    // FIXME #5074
    //let try_lookup = table.rename_memo.find(&key);
    let mut rename_memo = table.rename_memo.borrow_mut();
    match rename_memo.get().contains_key(&key) {
        false => {
            let new_idx = {
                let mut table = table.table.borrow_mut();
                idx_push(table.get(), Rename(id,to,tail))
            };
            rename_memo.get().insert(key,new_idx);
            new_idx
        }
        true => {
            match rename_memo.get().find(&key) {
                None => fail!("internal error: key disappeared 2013042902"),
                Some(idxptr) => {*idxptr}
            }
        }
    }
}
pub fn new_rename_internal ( id : Ident , to : Name , tail : SyntaxContext , table : & SCTable ) -> SyntaxContext { let key = ( tail , id , to ) ; // FIXME #5074 //let try_lookup = table.rename_memo.find(&key); let mut rename_memo = table . rename_memo . borrow_mut ( ) ; match rename_memo . get ( ) . contains_key ( & key ) { false => { let new_idx = { let mut table = table . table . borrow_mut ( ) ; idx_push ( table . get ( ) , Rename ( id , to , tail ) ) } ; rename_memo . get ( ) . insert ( key , new_idx ) ; new_idx } true => { match rename_memo . get ( ) . find ( & key ) { None => fail ! ( " " ) , Some ( idxptr ) => { * idxptr } } } } }
Extend a syntax context with a given rename and sctable
FIXME #8215 : currently pub to allow testing
Extend a syntax context with a given rename and sctable FIXME #8215 : currently pub to allow testing
id
Ident
to
Name
tail
SyntaxContext
table
&SCTable
id
Ident
to
Name
tail
SyntaxContext
table
&SCTable