Move ast::pat_id_map to ast::util

This commit is contained in:
Brian Anderson 2011-08-25 14:15:54 -07:00
parent 4d92cb5c63
commit 608f7ccded
4 changed files with 5 additions and 5 deletions

View file

@ -43,6 +43,8 @@ fn def_id_of_def(d: def) -> def_id {
}
}
type pat_id_map = std::map::hashmap<str, ast::node_id>;
// This is used because same-named variables in alternative patterns need to
// use the node_id of their namesake in the first pattern.
fn pat_id_map(pat: &@pat) -> pat_id_map {