Skip to content

Commit aa77cf3

Browse files
committed
enumerate ids for arguments too
1 parent e65c39c commit aa77cf3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/comp/metadata/astencode.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ fn visit_ids(item: @ast::item, vfn: fn@(ast::node_id)) {
185185
vfn(id);
186186
},
187187

188-
visit_fn: fn@(fk: visit::fn_kind, _d: ast::fn_decl,
188+
visit_fn: fn@(fk: visit::fn_kind, d: ast::fn_decl,
189189
_b: ast::blk, _sp: span, id: ast::node_id) {
190190
vfn(id);
191191

@@ -199,6 +199,10 @@ fn visit_ids(item: @ast::item, vfn: fn@(ast::node_id)) {
199199
visit::fk_fn_block {
200200
}
201201
}
202+
203+
vec::iter(d.inputs) {|arg|
204+
vfn(arg.id)
205+
}
202206
},
203207

204208
visit_class_item: fn@(_s: span, _p: ast::privacy,

0 commit comments

Comments
 (0)