id_visitor should handle expr_index and expr_assign_op as well.

This commit is contained in:
Eric Holk 2012-06-15 22:00:04 -04:00
parent 2b70cbc992
commit 5c9f414a85

View File

@ -454,8 +454,9 @@ fn id_visitor(vfn: fn@(node_id)) -> visit::vt<()> {
visit_expr: fn@(e: @expr) {
vfn(e.id);
alt e.node {
expr_unary(*) | expr_binary(*) | expr_index(*) {
alt e.node {
expr_index(*) | expr_assign_op(*) |
expr_unary(*) | expr_binary(*) {
vfn(ast_util::op_expr_callee_id(e));
}
_ { /* fallthrough */ }