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