Add comment for the use of Ident in hash map in mtwt
This commit is contained in:
parent
f37d6fc6f3
commit
b82d76c8a1
@ -35,6 +35,8 @@ use std::collections::HashMap;
|
|||||||
pub struct SCTable {
|
pub struct SCTable {
|
||||||
table: RefCell<Vec<SyntaxContext_>>,
|
table: RefCell<Vec<SyntaxContext_>>,
|
||||||
mark_memo: RefCell<HashMap<(SyntaxContext,Mrk),SyntaxContext>>,
|
mark_memo: RefCell<HashMap<(SyntaxContext,Mrk),SyntaxContext>>,
|
||||||
|
// The pair (Name,SyntaxContext) is actually one Ident, but it needs to be hashed and
|
||||||
|
// compared as pair (name, ctxt) and not as an Ident
|
||||||
rename_memo: RefCell<HashMap<(SyntaxContext,(Name,SyntaxContext),Name),SyntaxContext>>,
|
rename_memo: RefCell<HashMap<(SyntaxContext,(Name,SyntaxContext),Name),SyntaxContext>>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user