mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
id_visitor should handle expr_index and expr_assign_op as well.
This commit is contained in:
parent
2b70cbc992
commit
5c9f414a85
@ -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 */ }
|
||||
|
Loading…
Reference in New Issue
Block a user