syntax: move callee_id into the expr_ variants

This commit is contained in:
Erick Tryzelaar
2013-06-01 15:31:56 -07:00
parent 871684376f
commit 23808efd11
40 changed files with 337 additions and 289 deletions

View File

@@ -193,7 +193,7 @@ pub fn float_ty_to_str(t: float_ty) -> ~str {
}
pub fn is_call_expr(e: @expr) -> bool {
match e.node { expr_call(_, _, _) => true, _ => false }
match e.node { expr_call(*) => true, _ => false }
}
// This makes def_id hashable
@@ -460,7 +460,9 @@ pub fn id_visitor<T: Copy>(vfn: @fn(node_id, T)) -> visit::vt<T> {
},
visit_expr: |e, t, vt| {
vfn(e.callee_id, t);
for e.get_callee_id().each |callee_id| {
vfn(*callee_id, t);
}
vfn(e.id, t);
visit::visit_expr(e, t, vt);
},